Closed Bug 1139628 Opened 5 years ago Closed 5 years ago

Delayed process scripts don't load in new child processes

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: mossop, Assigned: billm)

References

Details

Attachments

(2 files)

I'm trying to use a process script and adding it to load during the app-startup notification. This is probably before the child process has loaded. My process script runs in the main process but never runs in the child process.
Attached patch testcaseSplinter Review
This is an updated version of the existing automated test though switched to task based for readability. The first task is the same as the existing test.

In the second I load a non-remote page in the only tab, this causes us to end the child process. Then I load a remote page there causing a new child process to start. In between I start a delayed process script. The test sees the response from the main process but then hangs waiting for the new child process to respond.
Blocks: 1068087
Assignee: nobody → wmccloskey
We're trying to load delayed process scripts, but it happens too early. This patch just delays initialization of the MM like we do for the tab MMs.
Attachment #8573626 - Flags: review?(bugs)
Attachment #8573626 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/15e646b7c5b5
https://hg.mozilla.org/mozilla-central/rev/a420bed08857
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.