Skip to content

Commit

Permalink
Update UrlbarInput to conditionally disable preventClickSelectsAll ba…
Browse files Browse the repository at this point in the history
…sed on breakout-extend attribute
  • Loading branch information
mauro-balades committed Dec 11, 2024
1 parent 9279028 commit c45d415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/components/urlbar/UrlbarInput-sys-mjs.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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
+++ b/browser/components/urlbar/UrlbarInput.sys.mjs
@@ -3901,6 +3901,9 @@ export class UrlbarInput {
Expand Down Expand Up @@ -30,7 +30,7 @@ index c504c9afc43785b5f003bb1f9f1dfbddef38d78b..63a2527725849c5f378fe71d2300a99f

this.focusedViaMousedown = !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
// upon calling this.focus().

0 comments on commit c45d415

Please sign in to comment.