From a90a5cba08fdf6c0ceb95101c275108a152a3aed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:37 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- toolkit/components/search/SearchSuggestions.sys.mjs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'toolkit/components/search/SearchSuggestions.sys.mjs') 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 -- cgit v1.2.3