gecko-dev/js
Tom Schuster 01d4cafbb1 Bug 1536094 - Support dynamic import from content scripts (sandboxed code) r=smaug,jonco
Firstly we need to find a usable ScriptLoader for code in the content script sandbox,
for that we use the normal ScriptLoader associated with DOMWindow wrapped by the sandbox.

Secondly we need to execute the module in the global of the sandbox instead of the
"ScriptGlobal" the ScriptLoader is actually associated with. The main
behavior change here comes from using xpc::NativeGlobal in HostImportModuleDynamically
and passing that global around inside ScriptFetchOptions.

To ensure that content-scripts and the webpage don't share imported modules,
the module map (mFetchingModules and mFetchedModules) now uses a complex key
of <URI, Global>. The Global is a nullptr for normal imports from a webpage.

Differential Revision: https://phabricator.services.mozilla.com/D107076
2021-03-23 11:15:11 +00:00
..
ductwork/debugger
examples
public Bug 1684316 - Implement highWaterMark as required by WebIDL. r=arai 2021-03-22 16:38:19 +00:00
src Bug 1693482 - SIMD optimization x64/x86: inline constant load for CMPGTB in MacroAssembler::swizzleInt8x16. r=lth 2021-03-23 08:08:33 +00:00
xpconnect Bug 1536094 - Support dynamic import from content scripts (sandboxed code) r=smaug,jonco 2021-03-23 11:15:11 +00:00
app.mozbuild
ffi.configure
moz.build
moz.configure Bug 1693912 - Renumber SIMD instructions based on final spec. r=rhunt 2021-03-12 17:23:54 +00:00
sub.configure