mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-22 11:26:41 +00:00
Co-authored-by: Slowlife01 <slowlife1165@gmail.com> Co-authored-by: mr. m <91018726+mr-cheffy@users.noreply.github.com> Co-authored-by: reizumi <reizumichan@protonmail.com>
31 lines
1.5 KiB
C++
31 lines
1.5 KiB
C++
diff --git a/browser/components/sessionstore/TabState.sys.mjs b/browser/components/sessionstore/TabState.sys.mjs
|
|
index 82721356d191055bec0d4b0ca49e481221988801..e01904a6ea73e068c236adecbac6a97adedb2bd3 100644
|
|
--- a/browser/components/sessionstore/TabState.sys.mjs
|
|
+++ b/browser/components/sessionstore/TabState.sys.mjs
|
|
@@ -85,7 +85,25 @@ class _TabState {
|
|
tabData.groupId = tab.group.id;
|
|
}
|
|
|
|
+ tabData.zenWorkspace = tab.getAttribute("zen-workspace-id");
|
|
+ tabData.zenSyncId = tab.getAttribute("id");
|
|
+ tabData.zenEssential = tab.getAttribute("zen-essential") === "true";
|
|
+ tabData.pinned = tabData.pinned || tabData.zenEssential;
|
|
+ tabData.zenDefaultUserContextId = tab.getAttribute("zenDefaultUserContextId");
|
|
+ tabData.zenPinnedIcon = tab.getAttribute("zen-pinned-icon");
|
|
+ tabData.zenIsEmpty = tab.hasAttribute("zen-empty-tab");
|
|
+ tabData.zenStaticLabel = tab.zenStaticLabel;
|
|
+ tabData.zenHasStaticIcon = !!tab.zenStaticIcon;
|
|
+ tabData.zenGlanceId = tab.getAttribute("glance-id");
|
|
+ tabData.zenIsGlance = tab.hasAttribute("zen-glance-tab");
|
|
+ tabData._zenPinnedInitialState = tab._zenPinnedInitialState;
|
|
+ tabData._zenIsActiveTab = tab._zenContentsVisible;
|
|
+ tabData.zenLiveFolderItemId = tab.getAttribute("zen-live-folder-item-id");
|
|
+
|
|
tabData.searchMode = tab.ownerGlobal.gURLBar.getSearchMode(browser, true);
|
|
+ if (tabData.searchMode?.source === tab.ownerGlobal.UrlbarUtils.RESULT_SOURCE.ZEN_ACTIONS) {
|
|
+ delete tabData.searchMode;
|
|
+ }
|
|
|
|
tabData.userContextId = tab.userContextId || 0;
|
|
|