Define a minimum unused period to unload a tab
Categories
(Firefox :: Tabbed Browser, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: toshi, Assigned: toshi)
References
Details
Attachments
(3 files)
TabUnloader chooses a tab to unload primarily based on tab's last accessed time. If the last accessed time is the oldest, the corresponding tab is chosen even though it was accessed just a few seconds ago. This may cause unwanted tab unloading. To mitigate the risk, we may define a minimum unused period (hardcoded or as a pref).
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
The chart above shows "How long unloaded tabs had been unloaded since they were unloaded", where the 25th percentile 60.22, meaning 25% of unloaded tabs were reloaded within a minute seems a bit short. Hopefully this patch, not to unload tabs that were accessed very recently, will improve tab selection.
Assignee | ||
Comment 3•3 years ago
|
||
Tab unloading should not unload "fresh" tabs i.e. tabs that were accessed
very recently, even though one of them was the least recently used tab.
To achieve it, this patch introduces the minimum inactive duration and we
prevent tabs that were accessed in the last period of that duration from
being unloaded.
This patch sets the default value to 10 minutes based on the historgram
TAB_UNLOAD_TO_RELOAD
where the median was 60sec and the 75th percentile
was 1040sec. This value can be overriden by the parameter of the TabUnloader's
APIs so that about:unloads and the tests can unload those fresh tabs.
Updated•3 years ago
|
Pushed by tkikuchi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8979a86f150d Define minInactiveDurationInMS not to unload fresh tabs. r=NeilDeakin
Comment 5•3 years ago
|
||
bugherder |
Assignee | ||
Comment 6•3 years ago
|
||
TAB_UNLOAD_TO_RELOAD
has been improved. The median moved from 250.95sec (beta93) to 945.18sec (beta95)
Description
•