Fixed restoring session store tabs

This commit is contained in:
mr. m
2025-02-24 10:53:36 +01:00
parent a84d62f307
commit ddaeec85d4

View File

@@ -1,5 +1,5 @@
diff --git a/browser/components/sessionstore/SessionStore.sys.mjs b/browser/components/sessionstore/SessionStore.sys.mjs
index 908743177d9f95e2e6549c689e7a493ca8668701..4b05b981d1e6ed370aa94536348ad7673a6c09fa 100644
index 908743177d9f95e2e6549c689e7a493ca8668701..181c4819b052e444e56e75f1cb40b4bc299569fb 100644
--- a/browser/components/sessionstore/SessionStore.sys.mjs
+++ b/browser/components/sessionstore/SessionStore.sys.mjs
@@ -3848,6 +3848,7 @@ var SessionStoreInternal = {
@@ -27,7 +27,7 @@ index 908743177d9f95e2e6549c689e7a493ca8668701..4b05b981d1e6ed370aa94536348ad767
continue;
}
let tabData = lazy.TabState.collect(tab, TAB_CUSTOM_VALUES.get(tab));
@@ -6042,6 +6043,12 @@ var SessionStoreInternal = {
@@ -6042,6 +6043,15 @@ var SessionStoreInternal = {
// Most of tabData has been restored, now continue with restoring
// attributes that may trigger external events.
@@ -36,6 +36,9 @@ index 908743177d9f95e2e6549c689e7a493ca8668701..4b05b981d1e6ed370aa94536348ad767
+ }
+ if (tabData.zenIsEmpty) {
+ tab.setAttribute("zen-empty-tab", "true");
+ }
+ if (tabData.zenPinnedId) {
+ tab.setAttribute("zen-pin-id", tabData.zenPinnedId);
+ }
if (tabData.pinned) {