Slow startup/high CPU use when restoring Firefox session with about:newtab as active tab in all windows
Categories
(Firefox :: Session Restore, defect)
Tracking
()
People
(Reporter: yoasif, Unassigned)
Details
(Keywords: perf:frontend, perf:responsiveness, perf:startup)
Attachments
(1 file)
41.76 KB,
text/plain
|
Details |
Basic information
Steps to Reproduce:
- Have a lot of Firefox windows and tabs
- Navigate to
about:newtab
in every open window (15) - quit Firefox, restore session
Expected Results:
Firefox should open in 11 seconds or less (Chromium manages this, so using this as a baseline) with no visible loading occurring.
Actual Results:
Firefox takes nearly a minute to load.
More information
This isn't a stress test by any means - I regularly open a Firefox session with 15 windows, and with many extensions enabled. For this test, for troubleshooting purposes, I disabled my extensions and navigated to about:newtab
to try to get a good baseline for a best case scenario with this many windows.
The fact that Chromium can open 15 windows with the Bing newtab (which has live content loaded) in a short amount of time makes this is the number to beat.
Profile URL: https://share.firefox.dev/2BqHPjY
Basic systems configuration:
OS version: Ubuntu 20.10
GPU model: Intel(R) HD Graphics 630 (KBL GT2)
Number of cores: 4
Amount of memory (RAM): 24GB
Thanks so much for your help.
Reporter | ||
Comment 1•4 years ago
|
||
Comment 2•4 years ago
|
||
:sefeng noticed that numerous setTimeouts were deferred for up to 40s.
Perhaps the lack of idle time on the main thread is making this quite problematic.
Notice how the pocket network requests do not start until ~42 seconds.
Updated•4 years ago
|
Comment 3•4 years ago
|
||
A significant chunk of this profile appears to be spending time in session restore, restoring the windows: https://share.firefox.dev/32Nj0cZ
Updated•4 years ago
|
Comment 4•4 years ago
|
||
The severity field is not set for this bug.
:mikedeboer, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Updated•3 years ago
|
Description
•