diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /toolkit/components/search/SearchSuggestions.sys.mjs | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-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.mjs | 7 |
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 |