diff options
Diffstat (limited to '')
-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 |