summaryrefslogtreecommitdiffstats
path: root/browser/components/urlbar/UrlbarProviderSearchSuggestions.sys.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /browser/components/urlbar/UrlbarProviderSearchSuggestions.sys.mjs
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/urlbar/UrlbarProviderSearchSuggestions.sys.mjs')
-rw-r--r--browser/components/urlbar/UrlbarProviderSearchSuggestions.sys.mjs6
1 files changed, 2 insertions, 4 deletions
diff --git a/browser/components/urlbar/UrlbarProviderSearchSuggestions.sys.mjs b/browser/components/urlbar/UrlbarProviderSearchSuggestions.sys.mjs
index 636524ea51..8cb3532d94 100644
--- a/browser/components/urlbar/UrlbarProviderSearchSuggestions.sys.mjs
+++ b/browser/components/urlbar/UrlbarProviderSearchSuggestions.sys.mjs
@@ -317,10 +317,8 @@ class ProviderSearchSuggestions extends UrlbarProvider {
/**
* Cancels a running query.
- *
- * @param {object} queryContext The query context object
*/
- cancelQuery(queryContext) {
+ cancelQuery() {
if (this._suggestionsController) {
this._suggestionsController.stop();
this._suggestionsController = null;
@@ -508,7 +506,7 @@ class ProviderSearchSuggestions extends UrlbarProvider {
trending: entry.trending,
description: entry.description || undefined,
query: [searchString.trim(), UrlbarUtils.HIGHLIGHT.NONE],
- icon: !entry.value ? engine.getIconURL() : entry.icon,
+ icon: !entry.value ? await engine.getIconURL() : entry.icon,
};
if (entry.trending) {