Skip to content

Commit 32aff66

Browse files
authored
fix: Fixed tab ownership being removed when opening new tabs, p=#11267, c=common
1 parent ef54bd7 commit 32aff66

File tree

4 files changed

+91
-67
lines changed

4 files changed

+91
-67
lines changed

src/browser/base/content/browser-commands-js.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
diff --git a/browser/base/content/browser-commands.js b/browser/base/content/browser-commands.js
2-
index 939ca497b882b3f4200141ba1b6764fb5c846f45..779cba5ff3df856a246321a36caa3725c054a314 100644
2+
index 939ca497b882b3f4200141ba1b6764fb5c846f45..09eb945215bb26e18c4414850bc4233ad5bd760c 100644
33
--- a/browser/base/content/browser-commands.js
44
+++ b/browser/base/content/browser-commands.js
55
@@ -14,6 +14,10 @@ var BrowserCommands = {
66
const where = BrowserUtils.whereToOpenLink(aEvent, false, true);
77

88
if (where == "current") {
99
+ if (!gBrowser.webNavigation.canGoBack && gZenCommonActions.shouldCloseTabOnBack()) {
10-
+ gBrowser.removeTab(gBrowser.selectedTab);
10+
+ gBrowser.removeTab(gBrowser.selectedTab, { animate: true });
1111
+ return;
1212
+ }
1313
try {

0 commit comments

Comments
 (0)