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
941 stars 79 forks source link

Bug: Whitelist is ignored #279

Open tandy-1000 opened 2 years ago

tandy-1000 commented 2 years ago

My tabs are getting discarded even when they are pinned (setting not to do that in config), and even when the domain is whitelisted, or audio is playing.

nh2 commented 2 years ago

I'm having the same problem:

image

Here my Github and Element pinned tabs are discarded.

This bug is relatively new, it didn't happen before.

I suspect that it was introduced with Firefox 93's automatic tab unloading (https://hacks.mozilla.org/2021/10/tab-unloading-in-firefox-93/). In the article it says:

Tabs playing sound, using picture-in-picture, pinned tabs, or tabs using WebRTC (which is used for video and audio conferencing sites) are weighted more heavily so they are less likely to be unloaded.

I suspect that it isn't auto-tab-discard that's unloading these tabs, but Firefox itself, and that ticking

[x] Do not discard a tab when it is pinned

in auto-tab-discard doesn't affect Firefox's own behaviour.

Is that possible?

nh2 commented 2 years ago

I'm going to try the Firefox about:config option browser.tabs.unloadOnLowMemory, setting it to false, as mentioned in the comments of that blog post: https://hacks.mozilla.org/2021/10/tab-unloading-in-firefox-93/#comment-27226.

Let's see if that helps.

tandy-1000 commented 2 years ago

I think you are right, I noticed that too as I have disabled auto-tab-discard for now.

andsofine commented 2 months ago

Same here (Firefox), whitelisted with "Always" check mark, opened a bunch of tabs and they all got unloaded. So unfortunately need to disable extension regularly.