test: Added tests for folders opening from owner tabs, b=no-bug, c=folders, tests, tabs

This commit is contained in:
Mr. M
2025-08-16 17:20:20 +02:00
parent 5dcc6d5f44
commit f2fcee9605
9 changed files with 78 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
diff --git a/browser/components/tabbrowser/content/tabbrowser.js b/browser/components/tabbrowser/content/tabbrowser.js
index d80a66a01002e78a9c65545d08fe786328ddf124..50ff735a4621110ff3691186139cabf76482a941 100644
index d80a66a01002e78a9c65545d08fe786328ddf124..a25073f3a700e4d6765a9ba92eddbc0bf4bfa444 100644
--- a/browser/components/tabbrowser/content/tabbrowser.js
+++ b/browser/components/tabbrowser/content/tabbrowser.js
@@ -422,15 +422,60 @@
@@ -249,17 +249,14 @@ index d80a66a01002e78a9c65545d08fe786328ddf124..50ff735a4621110ff3691186139cabf7
if (insertTab) {
// Insert the tab into the tab container in the correct position.
this.#insertTabAtIndex(t, {
@@ -2790,8 +2874,9 @@
@@ -2790,6 +2874,7 @@
ownerTab,
openerTab,
pinned,
+ essential,
bulkOrderedOpen,
- tabGroup: tabGroup ?? openerTab?.group,
+ tabGroup: tabGroup,
tabGroup: tabGroup ?? openerTab?.group,
});
}
@@ -2808,6 +2893,7 @@
openWindowInfo,
skipLoad,
@@ -394,10 +391,10 @@ index d80a66a01002e78a9c65545d08fe786328ddf124..50ff735a4621110ff3691186139cabf7
+ gZenWorkspaces._initialTab._shouldRemove = true;
+ }
+ }
}
+ }
+ else {
+ gZenWorkspaces._tabToRemoveForEmpty = this.selectedTab;
+ }
}
+ this._hasAlreadyInitializedZenSessionStore = true;
if (tabs.length > 1 || !tabs[0].selected) {