Closed Bug 1256710 Opened 8 years ago Closed 2 years ago

Firefox is sometimes sluggish when switching tabs when loading a large web page due to text layout

Categories

(Core :: Layout: Text and Fonts, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
e10s + ---
firefox48 --- affected

People

(Reporter: standard8, Unassigned)

References

Details

I keep getting instances where I try to load a page with a large amount of text. 

When doing so, Firefox UI can switch tabs, but it doesn't display the tab content, nor can I switch back to the original tab, and I also can't cancel the tab load.

http://hg.mozilla.org/mozilla-central/rev/556628e979a3
http://hg.mozilla.org/mozilla-central/rev/18cbd790875f

are example urls, though I've had bigger ones which have taken several minutes to load, and I haven't been able to use FF in that time.

This is on the latest nightly builds over the last week or so, with e10s enabled by default.
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID 20160323030400

I have tested on Mac OS X 10.10 with FF Nightly 48.0a1 (2016-03-23) and for me the links are loaded in ~15 sec and I can see the tab content after the page is loaded, also I can cancel the tab load if I press 2 times on the "x" close button. 
Mark can you try retest this with the latest build?
Flags: needinfo?(standard8)
OS: Unspecified → Mac OS X
Hardware: Unspecified → x86
I reported this in bug 1256279.
You just said that if you press 2 times on close button, it resolves this bug. It does NOT resolve
my bug 1256279. Why are you so sure they're the same?
Why everybody keep duping my bugs to other bugs that were reported later?
Blocks: 1256279
(In reply to ovidiu boca[:Ovidiu] from comment #1)
> User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:48.0)
> Gecko/20100101 Firefox/48.0
> Build ID 20160323030400
> 
> I have tested on Mac OS X 10.10 with FF Nightly 48.0a1 (2016-03-23) and for
> me the links are loaded in ~15 sec and I can see the tab content after the
> page is loaded, also I can cancel the tab load if I press 2 times on the "x"
> close button. 

Cancelling isn't the only issue here. Its the fact you can't switch tabs / use other tabs when this happens.

> Mark can you try retest this with the latest build?

I've just had it occur on https://hg.mozilla.org/mozilla-central/rev/02f2f4c75007

I can't give exact steps to repeat, but I started loading the page, and either tried switching tabs or going back or clicking on something else.

In any case, I ended up in the state where the tabs were showing just the spinner and I couldn't do anything in the content area of the tabs. I could interact with the browser chrome - attempting to switch tabs, copy url etc - but the tab content for the other tabs wouldn't not show.

I frequently see the spinner on smaller pages, especially if I load then switch tabs. I also quite often see when that spinner is up, it blocks other tabs from starting actions.

Interestingly, now FF has loaded that page once it was better on a simple reload. A shift-reload still loaded it quicker but still gave me the spinner when attempting to switch tabs.
Flags: needinfo?(standard8)
I have tested this on Mac OS X 10.10 with FF Nightly 48.0a1 and I can reproduce this, open this page: http://hg.mozilla.org/mozilla-central/rev/18cbd790875f and after this if I open another tabs the contents for this wouldn't not show, but I am able to close the process if I click "X".
Component: Untriaged → DOM
Product: Firefox → Core
Previous instances of this type of report were rooted in text layout not be interruptible so I'm moving this bug there.
Component: DOM → Layout: Text
See Also: → 1164189
This is much better now, probably since we switched to true multiple processes. For example, loading https://hg.mozilla.org/mozilla-central/rev/02f2f4c75007, I'm able to switch between tabs, and interact with the content in the tabs that aren't in the same process that is loading the big page.

Tabs that are in the same process, still get the spinner.

Mike, is that "good enough", or should we keep this open for more performance investigations?
Flags: needinfo?(mconley)
Glad to hear it's better, but we might want to keep this on file just in case we can find a way to make the text layout work interruptible.
Flags: needinfo?(mconley)
Summary: [e10s] Firefox is unusable with e10s when loading a large web page → Firefox is sometimes sluggish when switching tabs when loading a large web page due to text layout

This bug is pretty old. I think if somebody wants to work on this, a new bug is probably for the best.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.