summaryrefslogtreecommitdiffstats
path: root/browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs')
-rw-r--r--browser/components/urlbar/UrlbarProviderTabToSearch.sys.mjs15
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) {