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 ] Never switch to a discarded tab automatically #376

Open a-pav opened 6 months ago

a-pav commented 6 months ago
  • [x] Open a temporary blank page when all tabs in an inactive window are discarded (to be able to discard the active tab on this window)

This is a very useful option and currently available in Auto Tab Discard.

While it's enabled and I manually Discard the last active tab, it indeed opens a temporary blank page and waits for action (switching to or opening another tab). But whenever I Close the last active tab, it automatically switches to the previous tab, even if it's been already discarded.

I think it would be more consistent to open the same temporary blank page in the later scenario as well. That is, when the last active tab is Closed, recursively check and if all previous tabs have been already discarded, open the temporary blank page.

Jiang10086 commented 6 months ago

Very useful, I highly need it.

a-pav commented 6 months ago

Useful indeed. And more consistent with the overall behavior of Auto Tab Discard extension. I see only now that the behavior I explain in the second paragraph of my OP happens regardless of whether the option I mentioned is enabled or not.

So, this is the default behavior, but only for when the last active tab is Discarded and not for when it is Closed.