mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-01 05:11:52 +00:00
fix: Iterate through active folder tabs instead of all tabs, b=no-bug, c=common, folders, workspaces
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user