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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: billm, Assigned: billm)

References

Details

Attachments

(1 file)

Attached patch patchSplinter 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 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: 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)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: