Closed
Bug 984224
Opened 12 years ago
Closed 9 years ago
Start loading first tab as soon as we can
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: wesj, Unassigned)
Details
Right now we wait to get a Gecko:Ready message in Java before telling Gecko to start loading the first page. We should start loading it as soon as we can in browser.js rather than waiting for this round trip to happen.
Comment 1•12 years ago
|
||
I thought we tried this before and the competing between the Java UI and Gecko init resulted in a slower startup.
| Reporter | ||
Comment 2•12 years ago
|
||
BrowserApp.addTab is heavy, and I wouldn't be surprised if we should avoid it if we're just loading about:home.
Comment 3•12 years ago
|
||
(In reply to Wesley Johnston (:wesj) from comment #0)
> Right now we wait to get a Gecko:Ready message in Java before telling Gecko
> to start loading the first page. We should start loading it as soon as we
> can in browser.js rather than waiting for this round trip to happen.
Check with Brian about this. I thought we used to do that and changed it. Maybe I am wrong.
(In reply to Wesley Johnston (:wesj) from comment #2)
> BrowserApp.addTab is heavy, and I wouldn't be surprised if we should avoid
> it if we're just loading about:home.
Avoiding it might not buy us much. Because about:home is impl'd in Java, we don't block on Gecko adding a tab do we? I repeatably contend that using a tab and about:home HTML page is the easiest way to put about:home in the back/forward session.
Flags: needinfo?(bnicholson)
Comment 4•12 years ago
|
||
(In reply to Wesley Johnston (:wesj) from comment #0)
> Right now we wait to get a Gecko:Ready message in Java before telling Gecko
> to start loading the first page. We should start loading it as soon as we
> can in browser.js rather than waiting for this round trip to happen.
I don't follow -- where are we blocking on Gecko:Ready to load a page? We determine and load the first tab in loadStartupTab, which we call in initialize: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoApp.java#1516. We go through this path regardless of whether we're showing about:home from a fresh start, loading an external URL, or restoring the previous session.
Flags: needinfo?(bnicholson)
Comment 5•9 years ago
|
||
Yup, my impression is that we queue up all tab loads and the session restore message as fast as we can and dispatch them as soon as Gecko is ready - or as bug 1356563 shows, occasionally even before that...
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•