From 87bcd7ccfb6f075bced13a057d05576d3121a836 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Mon, 5 May 2025 12:53:14 +0200 Subject: [PATCH] fix: Fixed big delay when closing URL bar on compact mode, b=(no-bug), c=no-component --- src/browser/app/profile/zen-browser.js | 2 +- src/browser/components/urlbar/UrlbarInput-sys-mjs.patch | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/browser/app/profile/zen-browser.js b/src/browser/app/profile/zen-browser.js index ca11763ec..8cf44a716 100644 --- a/src/browser/app/profile/zen-browser.js +++ b/src/browser/app/profile/zen-browser.js @@ -47,7 +47,7 @@ pref("browser.urlbar.untrimOnUserInteraction.featureGate", true); // Url bar pref('browser.urlbar.unitConversion.enabled', true); pref('browser.urlbar.trending.featureGate', false); -pref('browser.urlbar.weather.featureGate', true); +pref('browser.urlbar.weather.featureGate', false); pref('browser.urlbar.quickactions.enabled', true); pref('browser.urlbar.clipboard.featureGate', true); pref('browser.urlbar.suggest.calculator', true); diff --git a/src/browser/components/urlbar/UrlbarInput-sys-mjs.patch b/src/browser/components/urlbar/UrlbarInput-sys-mjs.patch index 1200298e4..b363579cc 100644 --- a/src/browser/components/urlbar/UrlbarInput-sys-mjs.patch +++ b/src/browser/components/urlbar/UrlbarInput-sys-mjs.patch @@ -1,5 +1,5 @@ diff --git a/browser/components/urlbar/UrlbarInput.sys.mjs b/browser/components/urlbar/UrlbarInput.sys.mjs -index 4b69136aa31bfef3a1d3b57ad0c75fe07fa26be0..f001ffe262b26389c5af68e29d0785500969c344 100644 +index 4b69136aa31bfef3a1d3b57ad0c75fe07fa26be0..ebeaf33206649069b5307c400ada234fbec468d5 100644 --- a/browser/components/urlbar/UrlbarInput.sys.mjs +++ b/browser/components/urlbar/UrlbarInput.sys.mjs @@ -68,6 +68,13 @@ XPCOMUtils.defineLazyPreferenceGetter( @@ -29,7 +29,7 @@ index 4b69136aa31bfef3a1d3b57ad0c75fe07fa26be0..f001ffe262b26389c5af68e29d078550 this.inputField.select(); + this.document.ownerGlobal.setTimeout(() => { + zenToolbox.removeAttribute("supress-primary-adjustment"); -+ }, 1000); ++ }, 0); this._suppressPrimaryAdjustment = false; } @@ -58,7 +58,7 @@ index 4b69136aa31bfef3a1d3b57ad0c75fe07fa26be0..f001ffe262b26389c5af68e29d078550 this.handleNavigation({ event }); + this.document.ownerGlobal.setTimeout(() => { + zenToolbox.removeAttribute("supress-primary-adjustment"); -+ }, 1000); ++ }, 0); } /** @@ -118,7 +118,7 @@ index 4b69136aa31bfef3a1d3b57ad0c75fe07fa26be0..f001ffe262b26389c5af68e29d078550 + this.window.gBrowser.selectedBrowser.focus(); + this.document.ownerGlobal.setTimeout(() => { + zenToolbox.removeAttribute("supress-primary-adjustment"); -+ }, 1000); ++ }, 0); + + this.removeAttribute("zen-floating-urlbar"); +