Introduce about:unloads (chrome://discards equivalent)
Categories
(Firefox :: Tabbed Browser, enhancement)
Tracking
()
People
(Reporter: toshi, Assigned: toshi)
References
Details
Attachments
(4 files, 1 obsolete file)
We're reviving automatic tab unloader feature (bug 1587762). It might be useful to have a page like chrome://discards in Chrome, especially to see which tab will be unloaded next because the tab selection logic is complicated.
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Assignee | ||
Comment 3•3 years ago
|
||
Assignee | ||
Comment 4•3 years ago
|
||
The patch includes the following updates:
-
getAllProcesses() adds a per-tab map to hold the processes backed by
the process to a tab so that we don't need to iterateprocesses twice. -
Consider a process that hosts multiple frames in a single tab as
a unique process because such processes are terminated when
that single tab is unloaded. -
Add
TabUnloader.isDiscardable()
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D123986
Assignee | ||
Comment 6•3 years ago
|
||
The page contains
- a table to show the tabs and their attributes that
TabUnloader
considers - a button to trigger
TabUnloader.unloadLeastRecentlyUsedTab()
to visualize the behavior of TabUnloader
and manually trigger it.
Depends on D123987
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by tkikuchi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98586fa85ecf Part 1. Optimize TabUnloader for about:discards. r=NeilDeakin https://hg.mozilla.org/integration/autoland/rev/061cbd7639c4 Part 2. Add a blank about:unloads. r=NeilDeakin,flod https://hg.mozilla.org/integration/autoland/rev/4e62d5d8f501 Part 3. Implement about:unloads. r=NeilDeakin,fluent-reviewers,flod
Comment 9•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/98586fa85ecf
https://hg.mozilla.org/mozilla-central/rev/061cbd7639c4
https://hg.mozilla.org/mozilla-central/rev/4e62d5d8f501
Comment 10•3 years ago
|
||
Toshi, the feature itself landed in 93, is the new about:unloads page supposed to be uplifted in 93 as well or should it ride the 94 train. It probably should have a mention in our nightly release notes at least, wdyt?
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 11•3 years ago
|
||
(In reply to Pascal Chevrel:pascalc from comment #10)
Toshi, the feature itself landed in 93, is the new about:unloads page supposed to be uplifted in 93 as well or should it ride the 94 train. It probably should have a mention in our nightly release notes at least, wdyt?
Thank you for suggesting it! Given the complexity of this change, let's keep this on the 94 train. Instead, I'd like to publish a new release note. Below is the request template.
Release Note Request (optional, but appreciated)
[Why is this notable]: The new page about:unloads gives users the ability to manually trigger tab unloading at any time. In addition to the tab unloading feature, which was introduced in v93, we think it's useful to users and worth advertising as a release note.
[Affects Firefox for Android]: No
[Suggested wording]: Firefox now offers a new page about:unloads where users can manually unload tabs without closing them to release the system resource.
[Links (documentation, blog post, etc)]: No
Comment 12•3 years ago
|
||
Thanks, note added to our Nightly release notes.
Updated•3 years ago
|
Comment 14•3 years ago
|
||
I have started verifying this issue using the latest Firefox Nightly 95.0a1 (Build ID: 20211012214032) and Firefox Beta 94.0b5 (Build ID: 20211012185633) on Windows 10 x64, macOS 11.5.1 and Ubuntu 20.04.
- The “about:unloads” page is correctly displayed.
- The tab with the highest priority is unloaded after clicking the “Unload” button from the page. Also, it is no longer shown on the “about:unloads” page until this tab is reloaded.
@Toshihito could you please let us know if there are other scenarios that we should verify for this patch?
Assignee | ||
Comment 15•3 years ago
|
||
(In reply to Simona Rosu [:srosu], Ecosystem QA from comment #14)
@Toshihito could you please let us know if there are other scenarios that we should verify for this patch?
Thank you for verifying the page! Here's one more scenario worth verifying.
- Keep clicking the button and verify the button becomes unclickable when there are no unloadable tabs (= when Priority of all tabs shown is "-").
Comment 16•3 years ago
|
||
@Toshihito, I’ve just verified the scenario that you mentioned above and I’ve noticed the following:
- The “Unload” button becomes unclickable when the priority of all the tabs displayed on the page is blank.
- Also, I’ve noticed that if some of the “about:” pages are displayed on the page, and their priority is not blank, then the “Unload” button is still clickable and the about: pages are not unloaded when clicking this button.
Please let us known if you think that we should log an issue for this behavior.
Assignee | ||
Comment 17•3 years ago
|
||
(In reply to Simona Rosu [:srosu], Ecosystem QA from comment #16)
- Also, I’ve noticed that if some of the “about:” pages are displayed on the page, and their priority is not blank, then the “Unload” button is still clickable and the about: pages are not unloaded when clicking this button.
Please let us known if you think that we should log an issue for this behavior.
Ah, yes, it's expected that tabs hosted by the main process have valid priorities but not unloadable. It's ok to leave it. Thank you for bringing it up.
Comment 18•3 years ago
•
|
||
@Toshihito, thank you for providing more details. Based on comment 14 and comment 17, I’m marking this issue as Verified Fixed.
Description
•