fix: Fixed restoring split views, b=no-bug, c=folders, workspaces

This commit is contained in:
Mr. M
2025-08-21 00:38:35 +02:00
parent 4a87be372d
commit bb9be72863
2 changed files with 5 additions and 3 deletions

View File

@@ -1319,7 +1319,9 @@
}
while (oldGroup.tabs.length > 0) {
const tab = oldGroup.tabs[0];
tab.setAttribute('zen-workspace-id', folderData.workspaceId);
if (folderData.workspaceId) {
tab.setAttribute('zen-workspace-id', folderData.workspaceId);
}
workingData.containingTabsFragment.appendChild(tab);
}
if (!folderData.splitViewGroup) {

View File

@@ -928,7 +928,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
this.#fixTabPositions();
this.onWindowResize();
this._resolveInitialized();
this._clearAnyZombieTabs(); // Dont call with await
this.#clearAnyZombieTabs(); // Dont call with await
const tabUpdateListener = this.updateTabsContainers.bind(this);
window.addEventListener('TabOpen', tabUpdateListener);
@@ -1100,7 +1100,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
);
}
async _clearAnyZombieTabs() {
async #clearAnyZombieTabs() {
const tabs = this.allStoredTabs;
const workspaces = await this._workspaces();
for (let tab of tabs) {