diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs')
-rw-r--r-- | browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs | 15 |
1 files changed, 4 insertions, 11 deletions
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) { |