summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/SearchSuggestions.sys.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /toolkit/components/search/SearchSuggestions.sys.mjs
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/search/SearchSuggestions.sys.mjs')
-rw-r--r--toolkit/components/search/SearchSuggestions.sys.mjs7
1 files changed, 1 insertions, 6 deletions
diff --git a/toolkit/components/search/SearchSuggestions.sys.mjs b/toolkit/components/search/SearchSuggestions.sys.mjs
index 4a43975576..83bf665bcf 100644
--- a/toolkit/components/search/SearchSuggestions.sys.mjs
+++ b/toolkit/components/search/SearchSuggestions.sys.mjs
@@ -6,7 +6,6 @@ const lazy = {};
ChromeUtils.defineESModuleGetters(lazy, {
FormHistoryAutoCompleteResult:
"resource://gre/modules/FormHistoryAutoComplete.sys.mjs",
- FormHistoryClient: "resource://gre/modules/FormHistoryAutoComplete.sys.mjs",
SearchSuggestionController:
"resource://gre/modules/SearchSuggestionController.sys.mjs",
@@ -156,10 +155,6 @@ class SuggestAutoComplete {
// Bug 1822297: This re-uses the wrappers from Satchel, to avoid re-writing
// our own nsIAutoCompleteSimpleResult implementation for now. However,
// we should do that at some stage to remove the dependency on satchel.
- let client = new lazy.FormHistoryClient({
- formField: null,
- inputName: this.#suggestionController.formHistoryParam,
- });
let formHistoryEntries = (results?.formHistoryResults ?? []).map(
historyEntry => ({
// We supply the comments field so that autocomplete does not kick
@@ -170,7 +165,7 @@ class SuggestAutoComplete {
})
);
let autoCompleteResult = new lazy.FormHistoryAutoCompleteResult(
- client,
+ null,
formHistoryEntries,
this.#suggestionController.formHistoryParam,
searchString