rNeomy / auto-tab-discard

Use native tab discarding method to automatically reduce memory usage of inactive tabs
https://webextension.org/listing/tab-discard.html
Mozilla Public License 2.0
940 stars 79 forks source link

Feature Request: Discarding based on containers (Firefox) #287

Open justinmok opened 2 years ago

justinmok commented 2 years ago

tl;dr- (White|Black)list Firefox tabs from discarding by using containers as groups

Feature Request

I propose adding two new configuration options to support containers in Firefox:

  1. Whitelist - Only tabs belonging to these containers may be considered for discarding
  2. Blacklist - Tabs belonging to these containers may not be considered for discarding (inverse of whitelist)

For context, Firefox users can use the built-in containers feature to isolate tabs from one another. So in a sense, tabs can be organized by the containers they belong in, similar to tab groups in Chrome. image Tabs can be created in different containers.

Use Case

Firefox users like myself can benefit from this feature by simplifying tab discards without involving URLs/hostnames.

For example, I use a combination of Simple Tab Groups and containers to organize my tabs. My browser is configured so that existing and future tabs in the "quarantine" group are added to the "quarantine" container. With this feature, I can make sure that none of my other, possibly important, tabs are discarded.

Mockup

Here's what an implementation of this feature could look like: 2022-05-04_20-15 Options configured to only discard default (uncontained) tabs and tabs belonging to the "Personal" container. Additionally, the option to blacklist is disabled as a result.

Notes:

mxmilkiib commented 1 year ago

This would be great. My personal container can discard tabs whenever, and there are many many tabs in it that I slowly read and maybe document, but I really can't have any work container tab discard as there are often unsaved or uncompleted forms.