Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Multi-Account Containers "Hide" action destroys trees. #3302

Open
QORTEC opened this issue Mar 10, 2023 · 3 comments
Open

[Bug] Multi-Account Containers "Hide" action destroys trees. #3302

QORTEC opened this issue Mar 10, 2023 · 3 comments
Labels
bug extension-compatibility conflict with another addon

Comments

@QORTEC
Copy link

QORTEC commented Mar 10, 2023

Abstract

Trees are destroyed on Multi-Account Containers "Hide This Container" action.

Steps to reproduce

  1. Start Firefox with clean profile.
  2. Install TST.
  3. Install Multi-Account Containers
  4. Create a tree in a Container
  5. Hide the container containing the tree
  6. Show the container with the tree

Expected result

The tree is preserved, and in the same state as it was before being hidden.

Actual result

The tree is destroyed, all the tabs are now on the 1st level (roots).

Environment

  • Platform (OS): Solus OS (Linux)
  • Version of Firefox: 108.0.2
  • Version (or revision) of Tree Style Tab: 3.9.12
@piroor
Copy link
Owner

piroor commented Mar 10, 2023

Did you try the option?: TST options => "Tree Behavior" => "When visibility of tabs are changed by other addons" => "Keep tree structure including hidden tabs"

@piroor piroor added extension-compatibility conflict with another addon has-workaround and removed needs-triage labels Mar 10, 2023
@QORTEC
Copy link
Author

QORTEC commented Mar 11, 2023

Yes, it would seem I have the option enabled;
TST When visible

@piroor
Copy link
Owner

piroor commented Mar 11, 2023

Thanks, I've confirmed. I've tried to research what's happen at the situation, and I've finally realized that MAC moves tabs in hidden container when they are going to be shown. TST tries to fixup broken tree structure based on tab's position when they are moved by other addons or any user operation on the horizontal tab bar. So, for example, assume that there are tabs with containers:

  • A [default]
  • B [Personal, hidden]
    • B1 [Personal, hidden]
    • B2 [Personal, hidden]

When you try to turn the container "Personal" shown, MAC does:

  1. Move B to the index 1.
  2. Move B2 to the index 3. Tabs become:
    • A [default]
    • B [Personal, hidden]
      • B2 [Personal, hidden]
    • B1 [Personal, hidden]
  3. Move B2 to the index 3. Tabs become:
    • A [default]
    • B [Personal, hidden]
    • B1 [Personal, hidden]
    • B2 [Personal, hidden]
  4. Finally you got flat tabs.

TST expects that showing/hiding tabs won't be moved while changing its visibility. This is the reason why shown tabs become flat after you just turn them visible. Hmm...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug extension-compatibility conflict with another addon
Projects
None yet
Development

No branches or pull requests

2 participants