feat: Dont restore sidebar if window-sync is disabled, b=no-bug, c=no-component

This commit is contained in:
mr. m
2026-02-13 21:18:13 +01:00
parent 894fbd6a4f
commit 5511defb1e
2 changed files with 4 additions and 1 deletions

View File

@@ -312,6 +312,9 @@ export class nsZenSessionManager {
* The initial session state read from the session file, possibly modified by onFileRead.
*/
onCrashCheckpoints(initialState) {
if (!lazy.gWindowSyncEnabled) {
return;
}
// When we don't have browser.startup.page set to resume session,
// we only want to restore the pinned tabs into the new windows.
if (this.#shouldRestoreOnlyPinned && !this.#shouldRestoreFromCrash && this.#sidebar?.tabs) {

View File

@@ -20,7 +20,7 @@
"brandShortName": "Zen",
"brandFullName": "Zen Browser",
"release": {
"displayVersion": "1.18.6b",
"displayVersion": "1.18.7b",
"github": {
"repo": "zen-browser/desktop"
},