Skip to content

Commit 9279028

Browse files
committed
Fix UrlbarInput click selection behavior by disabling preventClickSelectsAll
1 parent 28e8cae commit 9279028

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/browser/components/urlbar/UrlbarInput-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/urlbar/UrlbarInput.sys.mjs b/browser/components/urlbar/UrlbarInput.sys.mjs
2-
index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..845043f5a887d4f46b0064792fb0834724e94a07 100644
2+
index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..63a2527725849c5f378fe71d2300a99f9b47b576 100644
33
--- a/browser/components/urlbar/UrlbarInput.sys.mjs
44
+++ b/browser/components/urlbar/UrlbarInput.sys.mjs
55
@@ -3901,6 +3901,9 @@ export class UrlbarInput {
@@ -25,3 +25,12 @@ index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..845043f5a887d4f46b0064792fb08347
2525
this._mousedownOnUrlbarDescendant = true;
2626

2727
if (
28+
@@ -4025,7 +4031,7 @@ export class UrlbarInput {
29+
}
30+
31+
this.focusedViaMousedown = !this.focused;
32+
- this._preventClickSelectsAll = this.focused;
33+
+ this._preventClickSelectsAll = false;
34+
35+
// Keep the focus status, since the attribute may be changed
36+
// upon calling this.focus().

0 commit comments

Comments
 (0)