diff --git a/src/browser/components/sessionstore/SessionStore-sys-mjs.patch b/src/browser/components/sessionstore/SessionStore-sys-mjs.patch index c8cbd23a3..b66f67824 100644 --- a/src/browser/components/sessionstore/SessionStore-sys-mjs.patch +++ b/src/browser/components/sessionstore/SessionStore-sys-mjs.patch @@ -1,5 +1,5 @@ diff --git a/browser/components/sessionstore/SessionStore.sys.mjs b/browser/components/sessionstore/SessionStore.sys.mjs -index 2c2f43bf743ef458b378e85e9ed44a971711e1d9..5ce4eb0b21cf4ed2b8e7c6ad0c57e77416a2ab48 100644 +index 2c2f43bf743ef458b378e85e9ed44a971711e1d9..1ab8d85dd39a6d5e3def0ee8a2e89bdd1ad3ca35 100644 --- a/browser/components/sessionstore/SessionStore.sys.mjs +++ b/browser/components/sessionstore/SessionStore.sys.mjs @@ -127,6 +127,8 @@ const TAB_EVENTS = [ @@ -175,16 +175,16 @@ index 2c2f43bf743ef458b378e85e9ed44a971711e1d9..5ce4eb0b21cf4ed2b8e7c6ad0c57e774 selectTab = Math.min(selectTab, winData.tabs.length); } -@@ -5809,6 +5839,9 @@ var SessionStoreInternal = { - winData.tabs, - winData.groups ?? [] - ); -+ aWindow.gZenFolders?.restoreDataFromSessionStore(winData.folders); -+ aWindow.gZenViewSplitter?.restoreDataFromSessionStore(winData.splitViewData); -+ aWindow.gZenWorkspaces?.restoreWorkspacesFromSessionStore(winData); - this._log.debug( - `restoreWindow, createTabsForSessionRestore returned ${tabs.length} tabs` +@@ -5821,6 +5851,9 @@ var SessionStoreInternal = { + savedTabGroup => !openTabGroupIdsInWindow.has(savedTabGroup.id) ); + } ++ aWindow.gZenFolders?.restoreDataFromSessionStore(winData.folders); ++ aWindow.gZenViewSplitter?.restoreDataFromSessionStore(winData.splitViewData); ++ aWindow.gZenWorkspaces?.restoreWorkspacesFromSessionStore(winData); + + // Move the originally open tabs to the end. + if (initialTabs) { @@ -6372,6 +6405,25 @@ var SessionStoreInternal = { // Most of tabData has been restored, now continue with restoring