Closed Bug 638369 Opened 14 years ago Closed 14 years ago

URL bar is slow to populate

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 9

People

(Reporter: dietrich, Assigned: mbrubeck)

Details

(Keywords: polish)

Attachments

(1 file, 2 obsolete files)

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.
Bug 611327 fixed this for some cases, but not for the URL that's loaded at startup.
Assignee: nobody → mbrubeck
Keywords: polish
OS: Mac OS X → All
Hardware: x86 → All
Attached patch patch (obsolete) — Splinter Review
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)
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 on attachment 516969 [details] [diff] [review] patch Wish we could just make this method "public".
Attachment #516969 - Flags: review?(wjohnston) → review+
Whiteboard: [has patch][needs review] → [has patch][has review][needs approval]
Can we add a comment to say that this sets it to the url?
Attached patch patch v2 (obsolete) — Splinter Review
(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+
(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 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+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
so this patch sets the URLbar to "about:home" during startup, right?
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.
(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
(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).
(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.
Status: RESOLVED → REOPENED
tracking-fennec: ? → ---
Resolution: FIXED → ---
Whiteboard: [has patch][has review][needs approval] → [needs new patch]
Attached patch patch v3Splinter Review
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
Status: REOPENED → ASSIGNED
Whiteboard: [needs new patch] → [has patch]
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)
Attachment #555592 - Flags: review?(wjohnston) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → Firefox 9
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.

Attachment

General

Created:
Updated:
Size: