Tree Style Tabs doesn't seem to play well with the Responsive Design Mode -- when I close tabs in Responsive Design Mode, they stick around indefinitely in the Tree Style Tab sidebar.
The tab should disappear from the TST sidebar.
The tab sticks around in the sidebar TST forever. Its "x" button is non-functional. (And in fact, its "x" button is non-functional even before I close the tab manually -- the tab only closes in the first place if I use Ctrl W or the main Firefox tabstrip's "x")
Note: when I enter Responsive Design Mode, I see this error in my browser console:
gBrowser is undefined ext-tabs.js:299
That ext-tabs.js line is linkified to point to the last line here, with the "gBrowser.getTabForBrowser" call:
let isArticleChangeListener = (eventName, event) => {
let {gBrowser} = event.target.ownerGlobal;
let tab = tabManager.getWrapper(
gBrowser.getTabForBrowser(event.target));
I initially thought that was a Tree Style Tabs js file, but now I'm seeing it's a file shipped with Firefox... so maybe this is a bug on Firefox's end. I'll file a Firefox bug as well, just in case. Though FWIW, I only see the "ext-tabs.js" error if I have Tree Style Tabs installed. (But I do see a few other similar gBrowser errors for a few other unrelated JS files, regardless of whether Tree Style Tabs is installed.)
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1404088 on this in Firefox's bug tracker, BTW. (Might be worth leaving this github-issue open, though, to track of any possible workarounds that are needed on TST's end?)
Thanks for filing! I am fairly sure the issue is in Firefox / RDM itself, but I'd suggest keeping this open for now until we know more.
I've confirmed this problem on Tab Center Redux also.
https://bugzilla.mozilla.org/show_bug.cgi?id=1404088#c4
There is a problem of unclear spec: "responsive design tabs is a new tab or not?" thus I cannot define TST's "expected behavior" for this case. Until the spec become clear, TST won't do any workaround for this problem.
There is a problem of unclear spec: "responsive design tabs is a new tab or not?" thus I cannot define TST's "expected behavior" for this case. Until the spec become clear, TST won't do any workaround for this problem.
A tab with RDM enabled is meant to be the same as the original tab. It has the same session history, etc.
At the moment, it seems like WebExtension APIs make it appear as a different tab, so we should strive to change that in Firefox.
For now, I would suggest TST not do anything special for RDM tabs. We should find a fix for this in Firefox, so that tab management add-ons don't worry about it.
This is now fixed in Firefox for Nightly 58. I also requested uplift to Beta 57, but unsure if it will be approved.
I would say it's fine to close this issue, as I wouldn't expect any changes on TST side.
Thanks a lot!!