Closed
Bug 1201377
Opened 9 years ago
Closed 9 years ago
Sandbox is nuked in the wrong place for content scripts
Categories
(WebExtensions :: Untriaged, defect)
WebExtensions
Untriaged
Tracking
(firefox43 fixed)
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: billm, Assigned: billm)
References
Details
Attachments
(1 file)
3.82 KB,
patch
|
gkrizsanits
:
review+
|
Details | Diff | Splinter Review |
Another really stupid bug. It calls us to nuke the content script sandbox whenever we add a listener. The onMessage.addListener call is sufficient to trigger it.
Attachment #8656365 -
Flags: review?(gkrizsanits)
Comment 1•9 years ago
|
||
Comment on attachment 8656365 [details] [diff] [review] patch Review of attachment 8656365 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/extensions/test/mochitest/test_sandbox_var.html @@ +19,5 @@ > + }); > +} > + > +function contentScript() > +{ { should move up @@ +41,5 @@ > + }, > +}; > + > +add_task(function* test_contentscript() > +{ here too @@ +46,5 @@ > + let extension = ExtensionTestUtils.loadExtension(extensionData); > + yield extension.startup(); > + info("extension loaded"); > + > + yield new Promise(resolve => { setTimeout(resolve, 0); }); I'm not sure why we need this one. @@ +50,5 @@ > + yield new Promise(resolve => { setTimeout(resolve, 0); }); > + > + let win = window.open(); > + > + win.location = "file_contentscript_page1.html"; This file is not in this patch. Make sure you land that patch first that has it :)
Attachment #8656365 -
Flags: review?(gkrizsanits) → review+
Comment 3•9 years ago
|
||
sorry had to back this out in https://hg.mozilla.org/integration/mozilla-inbound/rev/3416308a1151 since one of this changes caused test failures like https://treeherder.mozilla.org/logviewer.html#?job_id=13682808&repo=mozilla-inbound
Flags: needinfo?(wmccloskey)
https://hg.mozilla.org/mozilla-central/rev/2b110d2dd019
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(wmccloskey)
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•