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

Discard inactive tabs when number of inactive tabs checks only current window. #255

Open AJolly opened 2 years ago

AJolly commented 2 years ago

Took me forever to figure out why this extension was improperly working for me.

It seems that Auto Tab Discard checks active or inactive tabs on a per window basis, rather than globally.

rNeomy commented 2 years ago

No, not really! It just checks every 10 minutes (by default) and discards tabs that have been active for more than 10 minutes.

AJolly commented 2 years ago

What's the best way to debug why a tab isn't getting closed? I do not see a tool tip show up.

One weird thing - the number of tabs listed as discardable on startup is wildly different than the number of tabs I have open. "'startup plug-in' 'number of tabs that can be discarded on startup' 101 I have 142 tabs currently open.

I Increased the max number of tabs to check at a single time.

rNeomy commented 2 years ago

Go to the options page and enable logging. Then open the background page of the extension.

Open "chrome://extensions" in a browser tab and turn the developer mode on. Click on the inspect button for this extension and switch to the console tab.

If you could find a way to reproduce the issue, please provide steps here.

Chealer commented 1 month ago

@AJolly : can you reproduce with a current version, and if so, which browser do you use?