Update UrlbarInput to conditionally disable preventClickSelectsAll based on breakout-extend attribute

This commit is contained in:
mr. M
2024-12-11 17:41:10 +01:00
parent 92790287e1
commit c45d415579

View File

@@ -1,5 +1,5 @@
diff --git a/browser/components/urlbar/UrlbarInput.sys.mjs b/browser/components/urlbar/UrlbarInput.sys.mjs diff --git a/browser/components/urlbar/UrlbarInput.sys.mjs b/browser/components/urlbar/UrlbarInput.sys.mjs
index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..63a2527725849c5f378fe71d2300a99f9b47b576 100644 index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..e5a1ce5d61962d485d092cf3d1a90ff4833037f1 100644
--- a/browser/components/urlbar/UrlbarInput.sys.mjs --- a/browser/components/urlbar/UrlbarInput.sys.mjs
+++ b/browser/components/urlbar/UrlbarInput.sys.mjs +++ b/browser/components/urlbar/UrlbarInput.sys.mjs
@@ -3901,6 +3901,9 @@ export class UrlbarInput { @@ -3901,6 +3901,9 @@ export class UrlbarInput {
@@ -30,7 +30,7 @@ index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..63a2527725849c5f378fe71d2300a99f
this.focusedViaMousedown = !this.focused; this.focusedViaMousedown = !this.focused;
- this._preventClickSelectsAll = this.focused; - this._preventClickSelectsAll = this.focused;
+ this._preventClickSelectsAll = false; + this._preventClickSelectsAll = this.hasAttribute("breakout-extend");
// Keep the focus status, since the attribute may be changed // Keep the focus status, since the attribute may be changed
// upon calling this.focus(). // upon calling this.focus().