Fix UrlbarInput click selection behavior by disabling preventClickSelectsAll

This commit is contained in:
mr. M
2024-12-11 17:35:47 +01:00
parent 28e8caea54
commit 92790287e1

View File

@@ -1,5 +1,5 @@
diff --git a/browser/components/urlbar/UrlbarInput.sys.mjs b/browser/components/urlbar/UrlbarInput.sys.mjs
index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..845043f5a887d4f46b0064792fb0834724e94a07 100644
index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..63a2527725849c5f378fe71d2300a99f9b47b576 100644
--- a/browser/components/urlbar/UrlbarInput.sys.mjs
+++ b/browser/components/urlbar/UrlbarInput.sys.mjs
@@ -3901,6 +3901,9 @@ export class UrlbarInput {
@@ -25,3 +25,12 @@ index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..845043f5a887d4f46b0064792fb08347
this._mousedownOnUrlbarDescendant = true;
if (
@@ -4025,7 +4031,7 @@ export class UrlbarInput {
}
this.focusedViaMousedown = !this.focused;
- this._preventClickSelectsAll = this.focused;
+ this._preventClickSelectsAll = false;
// Keep the focus status, since the attribute may be changed
// upon calling this.focus().