diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /devtools/shared/loader/base-loader.sys.mjs | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/shared/loader/base-loader.sys.mjs')
-rw-r--r-- | devtools/shared/loader/base-loader.sys.mjs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/devtools/shared/loader/base-loader.sys.mjs b/devtools/shared/loader/base-loader.sys.mjs index b9d625f3e3..ab005b81e2 100644 --- a/devtools/shared/loader/base-loader.sys.mjs +++ b/devtools/shared/loader/base-loader.sys.mjs @@ -20,9 +20,13 @@ XPCOMUtils.defineLazyServiceGetter( "nsIResProtocolHandler" ); -ChromeUtils.defineESModuleGetters(lazy, { - NetUtil: "resource://gre/modules/NetUtil.sys.mjs", -}); +ChromeUtils.defineESModuleGetters( + lazy, + { + NetUtil: "resource://gre/modules/NetUtil.sys.mjs", + }, + { global: "contextual" } +); // Define some shortcuts. function* getOwnIdentifiers(x) { @@ -115,6 +119,7 @@ function Sandbox(options) { "ChromeUtils", "CSS", "CSSRule", + "CustomStateSet", "DOMParser", "Element", "Event", @@ -336,7 +341,9 @@ export function Require(loader, requirer) { module.exports = ChromeUtils.import(uri); } else if (isSYSMJSURI(uri)) { module = modules[uri] = Module(requirement, uri); - module.exports = ChromeUtils.importESModule(uri); + module.exports = ChromeUtils.importESModule(uri, { + global: "contextual", + }); } else if (isJSONURI(uri)) { let data; |