Closed Bug 1023980 Opened 10 years ago Closed 9 years ago

Need a generic mechanism to send data to apps that they need immediately on startup

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 984050

People

(Reporter: bent.mozilla, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [c=startup p= s= u=])

We need to be able to send certain info to apps on startup to prevent them from immediately turning around and sync-asking for stuff on startup.

We already know of several sync child->parent messages that slow app startup down, so finding them and sending that info immediately should eliminate a bunch of dead time.

There's fullscreen at least (bug 1003848), also PSms things (see bug 952875 comment 11).
Vivien, at some point you had a list of such messages, right?
Flags: needinfo?(21)
I believe that the spot we'll want to modify in the parent->child direction is probably PBrowser::SendLoadURL...
Priority: -- → P3
Whiteboard: [c= p= s= u=] → [c=startup p= s= u=]
(In reply to ben turner [:bent] (use the needinfo? flag!) from comment #1)
> Vivien, at some point you had a list of such messages, right?

The one I was looking for were:
http://mxr.mozilla.org/mozilla-central/source/dom/ipc/PBrowser.ipdl#218
http://mxr.mozilla.org/mozilla-central/source/dom/ipc/PBrowser.ipdl#218
http://mxr.mozilla.org/mozilla-central/source/dom/ipc/PBrowser.ipdl#278

There was also bug 1003848 as cited already.
IIRC that's all what I was seeing as obvious sync calls while starting the template app.
Flags: needinfo?(21)
I fix this issue implementing the persistent registration of Service Worker. Now in LoadURL we have a BrowserConfiguration object that can be used.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.