feat: Make sure to not lose any tabs when opening from a private window, b=no-bug, c=workspaces

This commit is contained in:
Mr. M
2025-12-07 18:58:04 +01:00
parent f720dce237
commit 307e8fc0ef
5 changed files with 117 additions and 88 deletions

View File

@@ -934,6 +934,8 @@ class nsZenWorkspaces extends nsZenMultiWindowFeature {
let activeWorkspace = await this.getActiveWorkspace();
this.activeWorkspace = activeWorkspace?.uuid;
await gZenSessionStore.promiseInitialized;
await window._zenPromiseNewWindowRestored;
delete window._zenPromiseNewWindowRestored;
try {
if (activeWorkspace) {
window.gZenThemePicker = new nsZenThemePicker();