Skip to content

Commit eefc8cb

Browse files
committed
feat: Clone the previous state, b=no-bug, c=no-component
1 parent 12c921f commit eefc8cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zen/sessionstore/ZenSessionManager.sys.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ class nsZenSessionManager {
157157

158158
getNewWindowData() {
159159
lazy.SessionSaver.run();
160-
const state = lazy.SessionStore.getCurrentState(forceUpdateAllWindows);
160+
const state = lazy.SessionStore.getCurrentState(true);
161161
const windows = state.windows || {};
162-
let newWindow = { ...Cu.cloneInto(windows[Object.keys(windows)[0]], {}), ...this.#sidebar };
162+
let newWindow = Cu.cloneInto(windows[0], {});
163163
return { windows: [newWindow] };
164164
}
165165
}

0 commit comments

Comments
 (0)