feat: Correctly initialize new restored windows, b=no-bug, c=no-component

This commit is contained in:
mr. m
2026-01-06 12:35:35 +01:00
parent 9820bd5772
commit 281ec6693d
2 changed files with 1 additions and 5 deletions

View File

@@ -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,

View File

@@ -99,7 +99,6 @@ class nsZenWindowSync {
if (
window.__SSi &&
!window.closed &&
window.gZenStartup.isReady &&
!window.gZenWorkspaces?.privateWindowOrDisabled
) {
yield window;