Closed
Bug 1337577
Opened 8 years ago
Closed 8 years ago
Fix some runnable labeling issues with console runnables in tests
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: billm, Assigned: billm)
References
Details
Attachments
(1 file)
6.57 KB,
patch
|
mccr8
:
review+
|
Details | Diff | Splinter Review |
Right now the console runnable is labeled with SystemGroup, so it's not allowed to run any content JS code. However, in a few tests, we use SpecialPowers to call into content JS from a console observer. Since console monitoring is async anyway, we can instead call the JS in a separate runnable. This avoids triggering labeling assertions in bug 1337537.
There are also a few runnables that do their own console monitoring without using SpecialPowers directly. I've fixed them to use SpecialPowers.
Attachment #8834686 -
Flags: review?(continuation)
Comment 1•8 years ago
|
||
Comment on attachment 8834686 [details] [diff] [review]
patch
Review of attachment 8834686 [details] [diff] [review]:
-----------------------------------------------------------------
I'm not too familiar with this, but it looks reasonable.
Attachment #8834686 -
Flags: review?(continuation) → review+
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → wmccloskey
Pushed by wmccloskey@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ef98d3fdb36f
Ensure that console listeners never touch web content, including in tests (r=mccr8)
Comment 3•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•