mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 01:16:35 +00:00
Update UrlbarInput to conditionally disable preventClickSelectsAll based on breakout-extend attribute
This commit is contained in:
@@ -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 {
|
||||
@@ -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().
|
||||
|
Reference in New Issue
Block a user