diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /devtools/shared/loader/base-loader.sys.mjs | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 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; |