Skip to content

Commit c45d415

Browse files
committed
Update UrlbarInput to conditionally disable preventClickSelectsAll based on breakout-extend attribute
1 parent 9279028 commit c45d415

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/components/urlbar/UrlbarInput-sys-mjs.patch

Lines changed: 2 additions & 2 deletions
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..63a2527725849c5f378fe71d2300a99f9b47b576 100644
2+
index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..e5a1ce5d61962d485d092cf3d1a90ff4833037f1 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 {
@@ -30,7 +30,7 @@ index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..63a2527725849c5f378fe71d2300a99f
3030

3131
this.focusedViaMousedown = !this.focused;
3232
- this._preventClickSelectsAll = this.focused;
33-
+ this._preventClickSelectsAll = false;
33+
+ this._preventClickSelectsAll = this.hasAttribute("breakout-extend");
3434

3535
// Keep the focus status, since the attribute may be changed
3636
// upon calling this.focus().

0 commit comments

Comments
 (0)