diff options
Diffstat (limited to 'browser/components/urlbar/UrlbarProviderSearchTips.sys.mjs')
-rw-r--r-- | browser/components/urlbar/UrlbarProviderSearchTips.sys.mjs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/browser/components/urlbar/UrlbarProviderSearchTips.sys.mjs b/browser/components/urlbar/UrlbarProviderSearchTips.sys.mjs index 209453263a..b19528619c 100644 --- a/browser/components/urlbar/UrlbarProviderSearchTips.sys.mjs +++ b/browser/components/urlbar/UrlbarProviderSearchTips.sys.mjs @@ -160,20 +160,18 @@ class ProviderSearchTips extends UrlbarProvider { * If this method returns false, the providers manager won't start a query * with this provider, to save on resources. * - * @param {UrlbarQueryContext} queryContext The query context object * @returns {boolean} Whether this provider should be invoked for the search. */ - isActive(queryContext) { + isActive() { return this.currentTip && lazy.cfrFeaturesUserPref; } /** * Gets the provider's priority. * - * @param {UrlbarQueryContext} queryContext The query context object * @returns {number} The provider's priority for the given query. */ - getPriority(queryContext) { + getPriority() { return this.PRIORITY; } @@ -194,6 +192,7 @@ class ProviderSearchTips extends UrlbarProvider { this.currentTip = TIPS.NONE; let defaultEngine = await Services.search.getDefault(); + let icon = await defaultEngine.getIconURL(); if (instance != this.queryInstance) { return; } @@ -204,7 +203,7 @@ class ProviderSearchTips extends UrlbarProvider { { type: tip, buttons: [{ l10n: { id: "urlbar-search-tips-confirm" } }], - icon: defaultEngine.getIconURL(), + icon, } ); |