prevent-duplicate-tabs icon indicating copy to clipboard operation
prevent-duplicate-tabs copied to clipboard

Compatibility with Sidebery Addon

Open HenryTheVacuum opened this issue 4 years ago • 12 comments

Issues with switching panels and older tabs closing no matter what setting is chosen in this extensions options.

HenryTheVacuum avatar Jan 26 '21 16:01 HenryTheVacuum

@jesse9212 this https://addons.mozilla.org/en-US/firefox/addon/sidebery/ ? it looks like the addon project died. I have no way to test, anyway try to enable "ONLY HTTP" option:

1

brcontainer avatar Jan 26 '21 16:01 brcontainer

Tried every setting, no luck. I think it has to do with how Sidebery handles closing tabs (they offer many options which may be interfering).

https://github.com/mbnuqw/sidebery

The developer said they are working on a new version, not sure why it was removed from ff addons site, however. https://github.com/mbnuqw/sidebery/issues/331#issuecomment-747187148

HenryTheVacuum avatar Jan 26 '21 16:01 HenryTheVacuum

@jesse9212 I will start analyzing and then come up with a way to solve this in an easy way for the user.

brcontainer avatar Jan 26 '21 17:01 brcontainer

@jesse9212 I tried using:

  • Firefox 85.0 (64-bits)
  • prevent-duplicate-tabs 0.7.2
  • Sidebery 4.9.1

I tried to drag the tabs inside the Sidebery, I tried to use the "Remove Panel" option to move the tabs to an existing panel, I tried to close the browser and restore the tabs that were in the Sidebery. Apparently, at no time did "prevent-tabs" cause conflict. If you can explain the step by step or even make a video and put it on a website like youtube (or similar) if it is a complicated process to explain. If you can explain exactly how this conflicting process did, I promise to correct it as soon as possible. Thanks.

brcontainer avatar Jan 29 '21 20:01 brcontainer

https://i.imgur.com/XSVXZKS.gif See how it closes the older one and keeps the current tab open even when settings are set to not do so. The same thing happens wth the two settings on as well.

Try unloading the original tab of the duplicate as well.

HenryTheVacuum avatar Jan 31 '21 16:01 HenryTheVacuum

@jesse9212 this seems to be a problem independent of the "sidebar", I am analyzing and will try to correct it today. Thanks!

brcontainer avatar Jan 31 '21 19:01 brcontainer

Glad we caught it, I just ask you test the sidebar where the older tab is in another "panel" and that when closing the new duplicate tab it switches to the panel and older tab.

There was another issue where it did switch to the correct panel, but did not activate the old tab.

Thanks so much.

HenryTheVacuum avatar Jan 31 '21 19:01 HenryTheVacuum

@jesse9212 I will try in every possible way, thanks for reporting.

brcontainer avatar Jan 31 '21 20:01 brcontainer

Seems to be working now except it only closes the new duplicate tab and switches the panel to activate the older tab when that older tab is in the "next panel" of sidebery. If it's in the "previous panel" then it closes the oldest tab which is wrong.

HenryTheVacuum avatar Mar 16 '21 20:03 HenryTheVacuum

Seems to be working now except it only closes the new duplicate tab and switches the panel to activate the older tab when that older tab is in the "next panel" of sidebery. If it's in the "previous panel" then it closes the oldest tab which is wrong.

I think I understand, I'll try to reproduce the error.

brcontainer avatar Mar 24 '21 13:03 brcontainer

@HenryTheVacuum In version 0.7.9 (or newer) the chrome.tabs.Tab.pendingUrl was added, possibly this would solve the issue with any "pending" tab, could you check if it solved the compatibility? I appreciate it!

brcontainer avatar Jul 25 '23 02:07 brcontainer

Scenario I tested: 2 windows open with multiple tabs.

The issue is fixed if I turn off "preserve active tab". If "preserve active tab" is turned on, the older tab will be closed (even if keep older tab is turned on). Maybe I'm confused about the the "p.a.t." setting objective.

Another issue still persists. If tab exists in window 2 but is not the active tab, creating a new duplicate tab in window 1 will close correctly, but then the old tab in window 2 will not activate.

HenryTheVacuum avatar Aug 02 '23 15:08 HenryTheVacuum