diff options
Diffstat (limited to 'browser/actors/ContentSearchParent.sys.mjs')
-rw-r--r-- | browser/actors/ContentSearchParent.sys.mjs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/browser/actors/ContentSearchParent.sys.mjs b/browser/actors/ContentSearchParent.sys.mjs index 73b881881b..3b27eabd14 100644 --- a/browser/actors/ContentSearchParent.sys.mjs +++ b/browser/actors/ContentSearchParent.sys.mjs @@ -6,6 +6,7 @@ const lazy = {}; ChromeUtils.defineESModuleGetters(lazy, { BrowserSearchTelemetry: "resource:///modules/BrowserSearchTelemetry.sys.mjs", + BrowserUtils: "resource://gre/modules/BrowserUtils.sys.mjs", FormHistory: "resource://gre/modules/FormHistory.sys.mjs", PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs", SearchSuggestionController: @@ -216,7 +217,7 @@ export let ContentSearch = { // message and the time we handle it. return; } - let where = win.whereToOpenLink(data.originalEvent); + let where = lazy.BrowserUtils.whereToOpenLink(data.originalEvent); // There is a chance that by the time we receive the search message, the user // has switched away from the tab that triggered the search. If, based on the @@ -510,10 +511,11 @@ export let ContentSearch = { lazy.UrlbarPrefs.get("shouldHandOffToSearchMode") ); break; - default: + default: { let state = await this.currentStateObj(); this._broadcast("CurrentState", state); break; + } } }, |