diff --git a/src/zen/sessionstore/ZenSessionManager.sys.mjs b/src/zen/sessionstore/ZenSessionManager.sys.mjs index 745752c72..63dbea4bc 100644 --- a/src/zen/sessionstore/ZenSessionManager.sys.mjs +++ b/src/zen/sessionstore/ZenSessionManager.sys.mjs @@ -72,10 +72,6 @@ export class nsZenSessionManager { compression: SHOULD_COMPRESS_FILE ? 'lz4' : undefined, backupFile, }); - - lazy.SessionStore.promiseAllWindowsRestored.then(() => { - delete this._migrationData; - }); } log(...args) { @@ -178,6 +174,7 @@ export class nsZenSessionManager { // Save the state to the sidebar object so that it gets written // to the session file. this.saveState(initialState); + delete this._migrationData; return; } // If there are no windows, we create an empty one. By default, diff --git a/src/zen/sessionstore/ZenWindowSync.sys.mjs b/src/zen/sessionstore/ZenWindowSync.sys.mjs index 8758f9753..64bfa233a 100644 --- a/src/zen/sessionstore/ZenWindowSync.sys.mjs +++ b/src/zen/sessionstore/ZenWindowSync.sys.mjs @@ -99,7 +99,6 @@ class nsZenWindowSync { if ( window.__SSi && !window.closed && - window.gZenStartup.isReady && !window.gZenWorkspaces?.privateWindowOrDisabled ) { yield window;