summaryrefslogtreecommitdiffstats
path: root/devtools/shared/system.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/shared/system.js')
-rw-r--r--devtools/shared/system.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/devtools/shared/system.js b/devtools/shared/system.js
index 1a6988d5b8..2f602a5318 100644
--- a/devtools/shared/system.js
+++ b/devtools/shared/system.js
@@ -10,9 +10,13 @@ loader.lazyRequireGetter(
true
);
const lazy = {};
-ChromeUtils.defineESModuleGetters(lazy, {
- AppConstants: "resource://gre/modules/AppConstants.sys.mjs",
-});
+ChromeUtils.defineESModuleGetters(
+ lazy,
+ {
+ AppConstants: "resource://gre/modules/AppConstants.sys.mjs",
+ },
+ { global: "contextual" }
+);
loader.lazyGetter(this, "hostname", () => {
try {
// On some platforms (Linux according to try), this service does not exist and fails.