fix: Iterate through active folder tabs instead of all tabs, b=no-bug, c=common, folders, workspaces

This commit is contained in:
Mr. M
2025-08-24 23:24:31 +02:00
parent e8aa5c93ee
commit bfbf5cce61
5 changed files with 14 additions and 13 deletions

View File

@@ -1602,7 +1602,9 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
const emptyTab = this._emptyTab;
if (emptyTab) {
emptyTab.setAttribute('zen-workspace-id', this.activeWorkspace);
gBrowser.TabStateFlusher.flush(emptyTab.linkedBrowser);
if (emptyTab.linkedBrowser) {
gBrowser.TabStateFlusher.flush(emptyTab.linkedBrowser);
}
const container = this.activeWorkspaceStrip;
if (container) {
container.insertBefore(emptyTab, container.firstChild);