summaryrefslogtreecommitdiffstats
path: root/browser/components/syncedtabs/TabListView.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/syncedtabs/TabListView.sys.mjs')
-rw-r--r--browser/components/syncedtabs/TabListView.sys.mjs5
1 files changed, 3 insertions, 2 deletions
diff --git a/browser/components/syncedtabs/TabListView.sys.mjs b/browser/components/syncedtabs/TabListView.sys.mjs
index 70c98c4175..aa7ee439c3 100644
--- a/browser/components/syncedtabs/TabListView.sys.mjs
+++ b/browser/components/syncedtabs/TabListView.sys.mjs
@@ -5,6 +5,7 @@
const lazy = {};
ChromeUtils.defineESModuleGetters(lazy, {
+ BrowserUtils: "resource://gre/modules/BrowserUtils.sys.mjs",
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
});
@@ -290,7 +291,7 @@ TabListView.prototype = {
// Middle click on a client
if (itemNode.classList.contains("client")) {
- let where = getChromeWindow(this._window).whereToOpenLink(event);
+ let where = lazy.BrowserUtils.whereToOpenLink(event);
if (where != "current") {
this._openAllClientTabs(itemNode, where);
}
@@ -346,7 +347,7 @@ TabListView.prototype = {
},
onOpenSelected(url, event) {
- let where = getChromeWindow(this._window).whereToOpenLink(event);
+ let where = lazy.BrowserUtils.whereToOpenLink(event);
this.props.onOpenTab(url, where, {});
},