From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- .../components/urlbar/UrlbarProviderTabToSearch.sys.mjs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs') diff --git a/browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs b/browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs index a328ea0922..9aabef3d19 100644 --- a/browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs +++ b/browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs @@ -143,10 +143,9 @@ class ProviderTabToSearch extends UrlbarProvider { /** * 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 0; } @@ -156,12 +155,9 @@ class ProviderTabToSearch extends UrlbarProvider { * describing the view update. * * @param {UrlbarResult} result The result whose view will be updated. - * @param {Map} idsByName - * A Map from an element's name, as defined by the provider; to its ID in - * the DOM, as defined by the browser. * @returns {object} An object describing the view update. */ - getViewUpdate(result, idsByName) { + getViewUpdate(result) { return { icon: { attributes: { @@ -202,10 +198,8 @@ class ProviderTabToSearch extends UrlbarProvider { * * @param {UrlbarResult} result * The result that was selected. - * @param {Element} element - * The element in the result's view that was selected. */ - onSelection(result, element) { + onSelection(result) { // We keep track of the number of times the user interacts with // tab-to-search onboarding results so we stop showing them after // `tabToSearch.onboard.interactionsLeft` interactions. @@ -232,7 +226,7 @@ class ProviderTabToSearch extends UrlbarProvider { } } - onEngagement(state, queryContext, details, controller) { + onEngagement(state, queryContext, details) { let { result, element } = details; if ( result?.providerName == this.name && @@ -354,7 +348,6 @@ class ProviderTabToSearch extends UrlbarProvider { searchStr, { matchAllDomainLevels: true, - onlyEnabled: true, } ); if (!engines.length) { -- cgit v1.2.3