Background tab throttling impacting real-world productivity
Categories
(Core :: DOM: Navigation, enhancement)
Tracking
()
People
(Reporter: 6mjjmugn96, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0
Steps to reproduce:
I start a login into my SSO provider, Okta. The Okta backend waits for an out-of-band MFA notification to come from elsewhere, and the Okta login page eventually gets a notification, which allows the procedure to continue, and then several redirects occur to cause me to be "logged in", all of which takes some non-trivial amount of real time. In order to continue being productive, I switch to another tab, or another virtual desktop. A few minutes later, I come back to my Okta tab in hopes that the login procedure has completed.
Actual results:
My SSO login has made essentially zero progress. As soon as the tab became unfocused (or not visible, or something akin to that), Firefox immediately slowed down Javascript processing (or just timeouts?).
Expected results:
I would want my login procedure to continue running in the background and to have completed on its own while I'm looking at something else.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Reporter | ||
Comment 2•2 years ago
|
||
First, I think that the background throttling is an excellent feature that works well the majority of the time. I'm not asking for that feature to be removed.
But it feels too aggressive in certain situations, like the one described above. There are a number of situations where I know that the progress of a web page is going to take longer than I want to stare at it for, and the logical thing to do is to look somewhere else. But the act of looking somewhere else causes the progress to slow to such a crawl that I effectively have to just watch it.
My initial thought is that the throttling could be delayed after a tab becomes unfocused. Let it continue to run at full speed for something like 60 seconds, and then start throttling. This feels like a fairly transparent way to fulfill both desired outcomes: full-speed processing of short-term background tasks, but throttling of long-term irrelevant processing.
Another possibility is an explicit allow-list of acceptable background URLs, but that feels like a lot of user management for very little additional benefit.
I have played with the controls listed in https://groups.google.com/g/mozilla.dev.platform/c/hcEqovQrBts but none of them seem to have any effect on when a background tab becomes throttled; it seems to always happen immediately upon loss of focus. I'm sure they could be tweaked to reduce throttling universally, but I don't think that's appropriate. If I have tested incorrectly or have otherwise missed a knob, please let me know.
Comment 3•1 year ago
|
||
Thank you for submitting this enhancement. I’m setting the component for this, but if this isn’t the most appropriate one, feel free to update it to a more suitable component.
Description
•