feat: Clone the previous state, b=no-bug, c=no-component

This commit is contained in:
Mr. M
2025-11-13 17:03:27 +01:00
parent 12c921fd87
commit eefc8cb20c

View File

@@ -157,9 +157,9 @@ class nsZenSessionManager {
getNewWindowData() {
lazy.SessionSaver.run();
const state = lazy.SessionStore.getCurrentState(forceUpdateAllWindows);
const state = lazy.SessionStore.getCurrentState(true);
const windows = state.windows || {};
let newWindow = { ...Cu.cloneInto(windows[Object.keys(windows)[0]], {}), ...this.#sidebar };
let newWindow = Cu.cloneInto(windows[0], {});
return { windows: [newWindow] };
}
}