treestyletab icon indicating copy to clipboard operation
treestyletab copied to clipboard

[Bug] Tree does not open in secondary windows

Open prismz opened this issue 10 months ago • 7 comments

Abstract

When starting Firefox, the first window opened automatically opens the tree. However, in any extra Firefox windows opened afterwards the tree is hidden and must be explicitly opened.

Steps to reproduce

  1. Start Firefox with clean profile.
  2. Install TST.
  3. Open an extra window window

Expected result

Tree should open automatically in all new windows

Actual result

Tree only opens in first window, not in any other windows opened

Environment

  • Platform (OS): Gentoo Linux
  • Version of Firefox: 128.8.0esr
  • Version (or revision) of Tree Style Tab: 4.1.3

https://github.com/user-attachments/assets/0fb2d03f-a05e-4e3f-8104-8694cd62b828

prismz avatar Mar 09 '25 05:03 prismz

@prismz, I loaded the latest Gentoo LiveGUI USB Image (v2.17), ran Firefox (v128.8.0esr), enabled "Open previous windows and tabs", installed TST (v4.1.4), created 2 windows, closed Firefox, launched Firefox from Konsole, and saw 2 windows both with the sidebars enabled and loaded with TST.

I also don't see the same errors as you from Konsole.

Image

https://github.com/user-attachments/assets/e550a9a7-3a1a-4c51-b1f9-1dcf21fc0d8c

irvinm avatar Mar 21 '25 23:03 irvinm

I think it is a problem of Firefox itself or something Gentoo specific modification. TST and any sidebar type addons have no ability to control the sidebar is opened/closed when a browser window is opened - Firefox does not provide any WebExtensions API to do that by addons.

piroor avatar Mar 27 '25 15:03 piroor

I have the same issue since my last upgrade, I am now under firefox 138 on arch linux and the tab bar is now not opening my default most of the time.

I realize this might not be an extension issue as you said it is controlled by firefox directly. But if anyone finds a fix/workaround it would be great.

I discovered that if I use the mouse to go to the menu and do "new window" it has the tab bar 100% of the time. But if something external (like xdg-open or calling firefox from the terminal) opens a new window, it does not have the tab bar like 80% of the time.

kuon avatar Apr 21 '25 12:04 kuon

Appears to be fixed in Firefox 139.

gxtu avatar Jun 08 '25 06:06 gxtu

Appears to be fixed in Firefox 139.

I just updated to 139.0.4 and am now experiencing the issue for the first time.

Edit: Actually, I think my issue is probably something else now that I watched the attached video. The tree panel in the second window is reopened automatically, but I cannot see any of the tabs – even after restarting Firefox, closing and reopening TST, or opening a new tab in that window. If I open a completely new window, TST does work there.

lumpiluk avatar Jun 24 '25 14:06 lumpiluk

Aand I found a workaround:

  1. Close just the window in which TST does not show any tabs
  2. Check History > Recently Closed Windows: The window you closed should show up here with the number of open tabs in brackets
  3. Restore the window
  4. All tabs are visible again :)

lumpiluk avatar Jun 24 '25 14:06 lumpiluk

Update:

I'm now also experiencing the issue on my other computer, and in the primary window. The workaround helped a couple of days ago after several tries, but today I can't seem to get the tabs to show in the sidebar no matter what I try.

lumpiluk avatar Jul 03 '25 19:07 lumpiluk