Open Bug 1687347 Opened 3 years ago Updated 1 year ago

When open multiple tabs then render foreground tab first

Categories

(Firefox :: Tabbed Browser, enhancement)

80 Branch
Desktop
Windows 7
enhancement

Tracking

()

Tracking Status
firefox84 --- affected

People

(Reporter: fred.steiny, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

I open several tabs fastly in parallel in Firefox 84 on Windows.

Actual results:

The last opened tab in foreground loads slower than if opened as single tab alone while other background tabs load in parallel.

Expected results:

The last opened tab in foreground should load as fast as if opened as single tab alone. The other tabs in background load slow or stall until foreground tab finished.

When I switch to another tab in background then this tab now should load with highest priority. Previous foreground tab now in background should continue loading with reduced speed only or stall until new tab in foreground finished.

It both means network bandwidth usage and CPU usage if one of them is limiting.

I will give this bug the Tabbed Browser component because it relates to having more windows/tabs loading at the same time.

Furthermore, I'm not sure I understand the steps to reproduce for they are vague.
Please correct my understanding:

  • I assume you are using the latest Firefox Release v84.0.2 on a Windows 7 system.
  • I assume you have 2 separate windows of the same profile, of the same browser.
  • you compare 2 different situations:
    ** Situation 1: one where you open several websites in new tabs of window 1 and several websites in new tabs of window 2
    ** Situation 2: another where you open several websites in new tabs of window 1 and only 1 new website in a new tab of window 2
  • I understand you expect that the ONE website opened last in situation 2 should be loading faster than the same website opened among other websites in the same window (in situation 1)

Am I correct? If not, please be as explicit as possible. A screen recording might be of great help.

Component: Untriaged → Tabbed Browser
Flags: needinfo?(fred.steiny)
OS: Unspecified → Windows 7
Hardware: Unspecified → Desktop
  • I assume you are using the latest Firefox Release v84.0.2 on a Windows 7 system.
    That's right but enhancement is ment for all Firefox on all systems

Problem:
It is only one browser window. I want to open several tabs for my favorite sites in parallel. Now I have to wait longer for the foreground tab to finish loading compared to when I only open one tab. I expect the foreground tab to load faster.

Solutions:
e.g. if Firefox creates one process per tab then the foreground tab should have normal cpu priority while background tabs processes should have low process priority. That should give most CPU usage to foreground tab.

For the network part I don't know if priorities can be given depending on tab or process? Then foreground tab/process should get highest priority network bandwidth and background tabs/process should get lower priority. While maybe file downloads running in parallel should get lowest priority. So a high network bandwidth website in foreground tab would throttle the other background tabs and even running file downloads.

If I switch the current foreground tab to another background tab or a new foreground tab then the old foreground tab becomes a background tab and priorities should be adapted accordingly.

Flags: needinfo?(fred.steiny)

I still cannot confirm it as I do not have an exact set of steps to take and reproduce the issue and neither do I see an incorrect prioritization of tabs being loaded, however, I might be missing technical information on the matter. Leaving this issue to be addressed by a developer.

@foxy:
If you have an exact set of steps to take in order to observe the issue, please write them down (including the websites being used).
Do you see this issue reproduce while in safe mode? (https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems)
Do you always observe it reproduce while in normal browsing? Or is it an intermittent issue?

Flags: needinfo?(fred.steiny)

For this website:
https://www.saturn.de/de/product/_schildkr%C3%B6t-fitness-klimmzugstange-2642960.html?uympq=vpqr&rbtc=%7C%7C%7CFitness+%2B+Gesundheit%20%3E%20Fitnessger%C3%A4te%20%3E%20Fitness+Zubeh%C3%B6r%7Cp%7C%7C&extPu=saturn-gaw-search&extProvId=5&extCr=77213530525-386440500908&extSi=&extTg=&extLi=1643745061&keyword=&extAP=&extMT=&gclid=Cj0KCQjwjoH0BRD6ARIsAEWO9DseHDc0CVmdS_yIPFR7-NQKOEgJJ-1bP6Fxk7EhSHqDNXrrYEFSim4aAm59EALw_wcB&gclsrc=aw.ds

I did Firefox profiling
https://profiler.firefox.com/from-addon/calltree/?globalTrackOrder=0-1-2-3-4-5-6&hiddenGlobalTracks=1-3-4-5&hiddenLocalTracksByPid=9136-0-1-2-3-4-6-10-11-12-13-17-18~8448-0-1-2-3-4~6972-0-1-2-3-4~6608-0-1-2-3-4-8~10672-0-1-2-3-4-5-6-7-8-10-12-14-15-16-17-18-19&localTrackOrderByPid=9136-19-0-1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18~8448-0-1-2-3-4~6972-0-1-2-3-4-5-6-7~6608-0-1-2-3-4-5-6-7-8~10672-20-0-1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19~&thread=48&v=5

And then I opened it with 4 other tabs concurrently with this website in foreground
https://profiler.firefox.com/from-addon/calltree/?globalTrackOrder=0-1-2-3-4-5-6-7-8-9&hiddenGlobalTracks=2-3-5&hiddenLocalTracksByPid=9136-1-2-3-4-6-10-11-12-13-14-15-16-17~5104-0-1-2-3-4-5-9-10-11-12-13~6608-0-1-2-3-4~6972-0-1-2-3-4-8~10680-0-1-2-3-4-5-6-7-8-9-10-11~11064-0-1-2-3-4-5-6-7-8-9-10-12-16-17-18~10312-0-1-2-3-4-5-6-7-8-9-10-11-14-16~1520-0-1-2-3-4-5-6-7-8-9-10-11-15-16&localTrackOrderByPid=9136-21-0-1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20~5104-0-1-2-3-4-5-6-7-8-9-10-11-12-13~6608-0-1-2-3-4-5-6-7~6972-0-1-2-3-4-5-6-7-8~10680-15-0-1-2-3-4-5-6-7-8-9-10-11-12-13-14~11064-19-0-1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18~10312-20-0-1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19~1520-17-0-1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16~&thread=22&v=5

Flags: needinfo?(fred.steiny)

Can you still open those profiles? it appears that you haven't uploaded them to Mozilla. They're still on your local storage.
If you can still open them in firefox, click the "Upload" button from the top-right corner of the content area and then copy-paste the "permalinik" here.

Thank you!

Flags: needinfo?(fred.steiny)

Cannot open it anymore and not reproducable => recommend closing this bug

Flags: needinfo?(fred.steiny)

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.