piroor / treestyletab

Tree Style Tab, Show tabs like a tree.
http://piro.sakura.ne.jp/xul/treestyletab/
Other
3.48k stars 279 forks source link

[Enhancement] Don't load unloaded tabs on drag drop of tree #3565

Closed Tragen closed 3 months ago

Tragen commented 4 months ago

Steps to see the situation

  1. Start Firefox with clean profile.
  2. Install TST.
  3. Create a tree with 2+ tabs
  4. Restart FF
  5. Drag the root tab of the tree to a new window

Expected result

The root tab gets activated and loaded and the tree is moved as is to the new window.

Actual (present) result

All tabs get loaded. I have some websites which uses rate limiting. Moving such a tree causes the site to not load anymore. E.g. Wordpress has a ninjafirewall plugin.

Environment

irvinm commented 4 months ago

https://addons.mozilla.org/en-US/firefox/addon/move-unloaded-tabs-for-tst/

Tragen commented 4 months ago

This addon doesn't work properly. I've moved a tree from one window to the other. Perfect. But moving it back loaded all tabs like without the addon.

piroor commented 3 months ago

After detailed investigation I've realized that browser.tabs.move() unexpectedly restores moved discarded tabs on certain cases. I've introduced a change to avoid such unexpected restoration: 720666d

Tragen commented 3 months ago

Wow, thank you! 👍😁😊

Tragen commented 3 months ago

One question, does this fix mean I don't need https://addons.mozilla.org/en-US/firefox/addon/move-unloaded-tabs-for-tst/ anymore or is this addon still needed?

piroor commented 3 months ago

You still need the addon https://addons.mozilla.org/en-US/firefox/addon/move-unloaded-tabs-for-tst/ if you don't want an unloaded tab become loaded when you start dragging on it. My fix just affects only for tabs moved across windows.

Tragen commented 3 months ago

So I don't need this addon if I don't care about the tree "root" I want to drag and drop to become active. As long as the rest of the tree is still unloaded, that's okay for me. I have trees with 30 to 80 tabs and one less addon is okay for me if only one tab gets loaded. Thanks for TST and your fixes.

github-actions[bot] commented 3 months ago

This issue has been closed due to no response within 14 days after labeled as "fixed", 7 days after last reopened, and 7 days after last commented.