Closed
Bug 638369
Opened 14 years ago
Closed 14 years ago
URL bar is slow to populate
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
VERIFIED
FIXED
Firefox 9
People
(Reporter: dietrich, Assigned: mbrubeck)
Details
(Keywords: polish)
Attachments
(1 file, 2 obsolete files)
1.05 KB,
patch
|
wesj
:
review+
|
Details | Diff | Splinter Review |
I've noticed lately that at startup, the main browser UI will be visible but nothing is in the URL bar. It stays like that for up to a few seconds, and then the URL bar populates and the page starts to render.
If the title/URL is available, can we pre-load it into the front-end earlier in the process?
That would allow the user to know what's actually going on. Currently I'm always sitting and waiting, curious to what Fennec is trying to load. If the title or URL was pre-loaded, I could hit stop. Or at least be aware of what's going on.
Assignee | ||
Comment 1•14 years ago
|
||
Bug 611327 fixed this for some cases, but not for the URL that's loaded at startup.
Assignee | ||
Comment 2•14 years ago
|
||
Update the titlebar immediately when a new tab is created. (Note: We can't do this within the Tab constructor or Tab.create, because it won't work until Browser.selectedTab is updated.)
Attachment #516969 -
Flags: review?(wjohnston)
Assignee | ||
Comment 3•14 years ago
|
||
Requesting to land this for Fennec 4.0. It is a significant polish issue (essentially the same as bug 611327 which was blocking-fennec:2.0+) and most importantly it improves our perceived startup speed.
The patch is one line and low risk.
tracking-fennec: --- → ?
Whiteboard: [has patch][needs review]
Comment 4•14 years ago
|
||
Comment on attachment 516969 [details] [diff] [review]
patch
Wish we could just make this method "public".
Attachment #516969 -
Flags: review?(wjohnston) → review+
Assignee | ||
Updated•14 years ago
|
Whiteboard: [has patch][needs review] → [has patch][has review][needs approval]
Comment 5•14 years ago
|
||
Can we add a comment to say that this sets it to the url?
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #5)
> Can we add a comment to say that this sets it to the url?
Done
Attachment #516969 -
Attachment is obsolete: true
Attachment #517593 -
Flags: review+
Comment 7•14 years ago
|
||
Comment on attachment 517593 [details] [diff] [review]
patch v2
Why not do this here:
http://mxr.mozilla.org/mobile-browser/source/chrome/content/browser-ui.js#880
Assignee | ||
Comment 8•14 years ago
|
||
(In reply to comment #7)
> Why not do this here:
> http://mxr.mozilla.org/mobile-browser/source/chrome/content/browser-ui.js#880
That code isn't called on TabOpen for the very first tab - we don't add the event listener until the UIReadyDelayed event, which happens when the first tab is already loaded.
Comment 9•14 years ago
|
||
Comment on attachment 517593 [details] [diff] [review]
patch v2
Fine. We can take this for now, but I'd like a bug filed to fix this in general.
Attachment #517593 -
Flags: approval2.0+
Assignee | ||
Comment 10•14 years ago
|
||
http://hg.mozilla.org/mobile-browser/rev/ee3ee8a6e83b
Filed followup bug 639962.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 11•14 years ago
|
||
so this patch sets the URLbar to "about:home" during startup, right?
Comment 12•14 years ago
|
||
It isn't shown due to:
http://mxr.mozilla.org/mobile-browser/source/chrome/content/Util.js#129
Assignee | ||
Comment 13•14 years ago
|
||
That's right - the effect during startup is that the "Enter Search or Address" hint is shown right away, instead of appearing a moment later.
Comment 14•14 years ago
|
||
(In reply to comment #13)
> That's right - the effect during startup is that the "Enter Search or Address"
> hint is shown right away, instead of appearing a moment later.
Seems like a long round-about way to get the editbox placeholder to show in the URLBar
Assignee | ||
Comment 15•14 years ago
|
||
(In reply to comment #14)
> Seems like a long round-about way to get the editbox placeholder to show in the
> URLBar
That's just a nice side effect. The more noticeable effect is when launching Fennec via a link from another app. Now the titlebar shows the URL of the loading page immediately, instead of remaining blank (often for several seconds).
Comment 16•14 years ago
|
||
(In reply to comment #15)
> (In reply to comment #14)
> > Seems like a long round-about way to get the editbox placeholder to show in the
> > URLBar
>
> That's just a nice side effect. The more noticeable effect is when launching
> Fennec via a link from another app. Now the titlebar shows the URL of the
> loading page immediately, instead of remaining blank (often for several
> seconds).
Fine, I'll hold off my rant to back this out.
Assignee | ||
Comment 17•14 years ago
|
||
Backed out for Ts regression:
http://hg.mozilla.org/mobile-browser/rev/f57a75b80dca
Status: RESOLVED → REOPENED
tracking-fennec: ? → ---
Resolution: FIXED → ---
Assignee | ||
Updated•14 years ago
|
Whiteboard: [has patch][has review][needs approval] → [needs new patch]
Assignee | ||
Comment 18•14 years ago
|
||
In my local testing on device, the code added by this patch seems to take only 1 millisecond to run. Pushing to Try to see if this still regresses ts:
http://tbpl.allizom.org/?tree=Try&usebuildbot=1&rev=3d3b834503b8
Attachment #517593 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Status: REOPENED → ASSIGNED
Whiteboard: [needs new patch] → [has patch]
Assignee | ||
Comment 19•14 years ago
|
||
Comment on attachment 555592 [details] [diff] [review]
patch v3
Try did not show a Ts regression from this patch:
http://tbpl.allizom.org/?tree=Try&usebuildbot=1&rev=3d3b834503b8
Attachment #555592 -
Flags: review?(wjohnston)
Updated•14 years ago
|
Attachment #555592 -
Flags: review?(wjohnston) → review+
Assignee | ||
Comment 20•14 years ago
|
||
Whiteboard: [has patch] → [inbound]
Comment 21•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → Firefox 9
Comment 22•14 years ago
|
||
Verified fixed on:
Mozilla/5.0 (Android;Linux armv7l;rv:9.0a1)Gecko/20110906
Firefox/9.0a1 Fennec/9.0a1
Device: Samsung Galaxy S
OS: Android 2.2
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•