Skip to content

Commit 005cdf5

Browse files
committed
fix: Dont restore pinned tabs for deferred session stores, b=no-bug, c=no-component
1 parent 429f74a commit 005cdf5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/browser/components/sessionstore/SessionStore-sys-mjs.patch

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/browser/components/sessionstore/SessionStore.sys.mjs b/browser/components/sessionstore/SessionStore.sys.mjs
2-
index e954a8df26ed84731b08b151f90a758206946582..5b8013c71c6b50579668d16a5f7d5a82b5d43e4d 100644
2+
index e954a8df26ed84731b08b151f90a758206946582..64ab1cce10324d574b49fe861975188c292756c3 100644
33
--- a/browser/components/sessionstore/SessionStore.sys.mjs
44
+++ b/browser/components/sessionstore/SessionStore.sys.mjs
55
@@ -2135,7 +2135,6 @@ var SessionStoreInternal = {
@@ -143,3 +143,12 @@ index e954a8df26ed84731b08b151f90a758206946582..5b8013c71c6b50579668d16a5f7d5a82
143143

144144
if (tabData.pinned) {
145145
tabbrowser.pinTab(tab);
146+
@@ -7266,7 +7289,7 @@ var SessionStoreInternal = {
147+
148+
let groupsToSave = new Map();
149+
for (let tIndex = 0; tIndex < window.tabs.length; ) {
150+
- if (window.tabs[tIndex].pinned) {
151+
+ if (window.tabs[tIndex].pinned && false) {
152+
// Adjust window.selected
153+
if (tIndex + 1 < window.selected) {
154+
window.selected -= 1;

0 commit comments

Comments
 (0)