gecko-dev/xpcom
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
..
base Bug 1536094 - Support dynamic import from content scripts (sandboxed code) r=smaug,jonco 2021-03-23 11:15:11 +00:00
build Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin 2021-03-10 10:47:47 +00:00
components Merge mozilla-central to autoland. 2021-03-23 00:05:36 +02:00
docs Bug 1695954: Move Gecko Logging MDN Page In-tree r=nika 2021-03-09 16:27:29 +00:00
ds Bug 708901 - Add nsTHashSet. r=xpcom-reviewers,nika 2021-03-23 10:36:31 +00:00
glue Bug 1698388 - Fix static-analysis warnings in NetLinkService.cpp r=necko-reviewers,kershaw 2021-03-15 10:28:32 +00:00
idl-parser
io Bug 1690326: Map Windows error 0x570 ERROR_FILE_CORRUPT to NS_ERROR_FILE_FS_CORRUPTED r=xpcom-reviewers,janv,nika 2021-03-23 10:29:02 +00:00
libxpt/xptcall
reflect
rust
string
system Bug 1699707 - Remove DeviceProximityEvent and UserProximityEvent r=agi,annevk,smaug 2021-03-22 18:16:16 +00:00
tests Bug 1699375 - Move WalkTheStack to mozglue. r=nika 2021-03-22 21:25:30 +00:00
threads Bug 1699742 - Remove MOZ_GECKO_PROFILER ifdefs that are no longer needed, r=gerald. 2021-03-22 16:29:52 +00:00
windbgdlg
xpidl
moz.build Bug 1695954: Move Gecko Logging MDN Page In-tree r=nika 2021-03-09 16:27:29 +00:00
xpcom-config.h.in