Page MenuHomePhabricator

Fix the DarkConsole inline error log stack trace expansion behavior for Content-Security-Policy
ClosedPublic

Authored by epriestley on Mar 13 2018, 11:39 PM.
Tags
None
Referenced Files
F14096732: D19218.diff
Tue, Nov 26, 5:02 AM
F14093489: D19218.diff
Mon, Nov 25, 11:32 AM
Unknown Object (File)
Mon, Nov 18, 11:49 PM
Unknown Object (File)
Sun, Nov 17, 8:22 AM
Unknown Object (File)
Sun, Nov 17, 12:20 AM
Unknown Object (File)
Thu, Nov 7, 9:39 PM
Unknown Object (File)
Oct 23 2024, 7:32 AM
Unknown Object (File)
Oct 9 2024, 9:11 AM
Subscribers
None

Details

Summary

See PHI451. Ref T13102. DarkConsole uses an ancient inline "onclick" handler to expand the stack traces for errors.

The new Content-Security-Policy prevents this from functioning.

Replace this with a more modern behavior-driven action instead.

Test Plan
  • Clicked some errors in DarkConsole, saw stack traces appear.
  • Grepped for onclick and jsprintf() to see if I could find any more of these, but came up empty.

Diff Detail

Repository
rP Phabricator
Branch
onclick1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19837
Build 26879: Run Core Tests
Build 26878: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 13 2018, 11:45 PM
This revision was automatically updated to reflect the committed changes.