Closed
Bug 1141661
Opened 9 years ago
Closed 9 years ago
Delayed process scripts at chrome URLs aren't loaded in new processes
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla40
People
(Reporter: mossop, Assigned: mrbkap)
References
Details
Attachments
(2 files)
2.01 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
2.31 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
Because we send the chrome registry across after we attempt to load process scripts in a new process any process script at a chrome URL can't be found.
Assignee: nobody → wmccloskey
tracking-e10s:
--- → ?
Assignee | ||
Updated•9 years ago
|
Assignee: wmccloskey → mrbkap
Assignee | ||
Comment 1•9 years ago
|
||
I see two ways to fix this: 1. Try to delay loading frame scripts until later in PContent startup (that is, after we register chrome). 2. Remember any chrome:-protocol'd scripts that failed to resolve in the child and try to re-resolve them when we register new chrome. This seems safer, but I don't know if we want to allow buggy extensions to accidentally load frame scripts before they register their chrome. Olli, any additional thoughts? My initial reaction is to implement option 2.
Flags: needinfo?(bugs)
Comment 2•9 years ago
|
||
So, we should move chrome registry sending to happen earlier, right? (kind of a variant of 1) 2. sounds super weird and error prone.
Flags: needinfo?(bugs)
Reporter | ||
Comment 3•9 years ago
|
||
Seems like it would be straightforward to do 1. Sending the process scripts and sending the chrome registry both happen synchronously from ContentParent::InitInternal so we just need to flip the order no?
Assignee | ||
Comment 4•9 years ago
|
||
Wow, that was a brain fart on my part, yeah. https://treeherder.mozilla.org/#/jobs?repo=try&revision=12ee670a9cd1
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8594184 -
Flags: review?(bugs)
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8594185 -
Flags: review?(dtownsend)
Updated•9 years ago
|
Attachment #8594184 -
Flags: review?(bugs) → review+
Reporter | ||
Updated•9 years ago
|
Attachment #8594185 -
Flags: review?(dtownsend) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/43f77c634a8b https://hg.mozilla.org/integration/mozilla-inbound/rev/87048f5c4e77
Keywords: checkin-needed
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/43f77c634a8b https://hg.mozilla.org/mozilla-central/rev/87048f5c4e77
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•