Skip to content

Commit be9928b

Browse files
authored
no-bug: Prevent focusing the urlbar on tab switch (gh-13002)
1 parent 742a1e6 commit be9928b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/browser/components/tabbrowser/content/tabbrowser-js.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/tabbrowser/content/tabbrowser.js b/browser/components/tabbrowser/content/tabbrowser.js
2-
index d88bc0e5570c8fd428a84fdf5af0f6bab1e2a636..d9491b680bf8839038dadc0c6ee52f81a655e998 100644
2+
index d88bc0e5570c8fd428a84fdf5af0f6bab1e2a636..be4bedce98f404325e547dd8a4e73e895b6025b0 100644
33
--- a/browser/components/tabbrowser/content/tabbrowser.js
44
+++ b/browser/components/tabbrowser/content/tabbrowser.js
55
@@ -413,6 +413,7 @@
@@ -186,6 +186,15 @@ index d88bc0e5570c8fd428a84fdf5af0f6bab1e2a636..d9491b680bf8839038dadc0c6ee52f81
186186
// If focus is on the old tab, move it to the new tab.
187187
if (activeEl == oldTab) {
188188
newTab.focus();
189+
@@ -1822,7 +1902,7 @@
190+
// Focus the location bar if it was previously focused for that tab.
191+
// In full screen mode, only bother making the location bar visible
192+
// if the tab is a blank one.
193+
- if (gURLBar.getBrowserState(newBrowser).urlbarFocused) {
194+
+ if (gURLBar.getBrowserState(newBrowser).urlbarFocused && !gZenVerticalTabsManager._hasSetSingleToolbar) {
195+
let selectURL = () => {
196+
if (this._asyncTabSwitching) {
197+
// Set _awaitingSetURI flag to suppress popup notification
189198
@@ -2110,7 +2190,12 @@
190199
return this._setTabLabel(aTab, aLabel);
191200
}

0 commit comments

Comments
 (0)