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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
e10s m6+ ---
firefox40 --- fixed

People

(Reporter: mossop, Assigned: mrbkap)

References

Details

Attachments

(2 files)

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: wmccloskey → mrbkap
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)
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)
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?
Attached patch FixSplinter Review
Attachment #8594184 - Flags: review?(bugs)
Attachment #8594185 - Flags: review?(dtownsend)
Attachment #8594184 - Flags: review?(bugs) → review+
Attachment #8594185 - Flags: review?(dtownsend) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/43f77c634a8b
https://hg.mozilla.org/mozilla-central/rev/87048f5c4e77
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
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: