Closed Bug 1056443 Opened 9 years ago Closed 8 years ago

[e10s] Location bar goes blank when loading a page


(Firefox :: Address Bar, defect)

Not set



Firefox 40
40.2 - 27 Apr
Tracking Status
e10s + ---
firefox40 --- verified


(Reporter: ehsan.akhgari, Assigned: billm)


(Depends on 1 open bug, Blocks 1 open bug)



(1 file)

STR: Type a URL in the location bar, and press enter.  The URL bar first goes blank (and the placeholder text shows up), and then after a few seconds the URL pops in back to the location bar, usually along when there is something to paint on the page, or at least when we set the title.  So this might be a delay until we get a response from the network on the request, or something.
Blocks: fxe10s
Summary: Location bar goes blank when loading a page → [e10s] Location bar goes blank when loading a page
This happens when we switch between remote and non-remote tabs. It should go away when we stop doing that.
Depends on: 999239
Assignee: nobody → dtownsend+bugmail
Flags: firefox-backlog+
Flags: qe-verify?
Assignee: dtownsend+bugmail → nobody
(In reply to Bill McCloskey (:billm) from comment #1)
> This happens when we switch between remote and non-remote tabs. It should go
> away when we stop doing that.

I think bug 999239 didn't do that. What's the plan for this now?
No longer depends on: 999239
Flags: qe-verify? → qe-verify+
Attached patch patchSplinter Review
This happens when we switch processes and run the LoadInOtherProcess session store code. Assume we're navigating from about:newtab to The sequence is as follows:

- Start to restore. We send history data down to child. However, the history data only includes about:newtab. The URL is in loadArguments, which we haven't sent down yet.
- The content process calls setCurrentURI while restoring the history. The URL it passes in is about:newtab. That triggers an onLocationChange message which causes the URL bar to show about:newtab.
- We immediately start to restore tab content. This time we send down loadArguments. However, before doing anything, we setCurrentURI(about:blank). This triggers another onLocationChange, which blanks out the URL bar.
- Eventually the correct URL loads and we get an onLocationChange for it.

So this is why we flash about:newtab, and then the URL bar is blank for most of the load.

I think the simplest solution is to avoid the two setCurrentURI calls when loadArguments is non-null.
Assignee: nobody → wmccloskey
Attachment #8592569 - Flags: review?(ttaubert)
Comment on attachment 8592569 [details] [diff] [review]

Review of attachment 8592569 [details] [diff] [review]:

This whole remoteness switching is such a mess :/ I really hope we can get rid of this before shipping e10s... Thanks a lot for working on this though!
Attachment #8592569 - Flags: review?(ttaubert) → review+
OS: Mac OS X → All
Hardware: x86 → All
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
Iteration: --- → 40.2 - 27 Apr
Reproduced the issue on Windows 7 64-bit using 2014-08-20 Nightly (build ID: 20140820030202) with e10s enabled.

Confirming the fix using latest Nightly, build ID: 20150419030206 on Windows 7 64-bit, Ubuntu 14.04 32-bit and Mac OS X 10.9.5.
Depends on: 1225543
You need to log in before you can comment on or make changes to this bug.