mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-30 06:58:41 +00:00
32 lines
1.5 KiB
C++
32 lines
1.5 KiB
C++
diff --git a/browser/components/urlbar/UrlbarView.sys.mjs b/browser/components/urlbar/UrlbarView.sys.mjs
|
|
index b3608bb8b851979b893da9c83e86d08b54288047..97ffb0b855b1f1c3fe5c4081aa1ec03ceda82b05 100644
|
|
--- a/browser/components/urlbar/UrlbarView.sys.mjs
|
|
+++ b/browser/components/urlbar/UrlbarView.sys.mjs
|
|
@@ -609,7 +609,7 @@ export class UrlbarView {
|
|
!this.input.value ||
|
|
this.input.getAttribute("pageproxystate") == "valid"
|
|
) {
|
|
- if (!this.isOpen && ["mousedown", "command"].includes(event.type)) {
|
|
+ if (!this.isOpen && ["mousedown", "click", "command"].includes(event.type)) {
|
|
// Try to reuse the cached top-sites context. If it's not cached, then
|
|
// there will be a gap of time between when the input is focused and
|
|
// when the view opens that can be perceived as flicker.
|
|
@@ -1333,7 +1333,7 @@ export class UrlbarView {
|
|
includeHiddenExposures: true,
|
|
});
|
|
let canBeVisible =
|
|
- newSpanCount <= this.#queryContext.maxResults && !seenMisplacedResult;
|
|
+ newSpanCount < this.#queryContext.maxResults && !seenMisplacedResult;
|
|
if (result.isHiddenExposure) {
|
|
if (canBeVisible) {
|
|
this.controller.engagementEvent.addExposure(
|
|
@@ -3061,7 +3061,7 @@ export class UrlbarView {
|
|
}
|
|
|
|
#enableOrDisableRowWrap() {
|
|
- let wrap = getBoundsWithoutFlushing(this.input.textbox).width < 650;
|
|
+ let wrap = false;
|
|
this.#rows.toggleAttribute("wrap", wrap);
|
|
this.oneOffSearchButtons.container.toggleAttribute("wrap", wrap);
|
|
}
|