gecko-dev/dom/script
Jon Coppeard 2081da2013 Bug 1877703 - Part 3: Also remove currently fetching preload modules from the module map when import map is registered r=smaug
A further problem with dynamically inserted import maps was discovered where
sometimes module scripts would never execute. This happens when the script is
still being fetched when the import map is added.

To fix this, cancel all fetching module preloads as well when an import map is
registered and remove them from the module map. In theory this shouldn't be
necessary but I wasn't able to make the tests pass without this step.

For simplicity also remove all module preloads from the scriptloader's list of
preload requests rather than detecting and ignoring them later on.

Differential Revision: https://phabricator.services.mozilla.com/D204202
2024-03-19 10:07:35 +00:00
..
AutoEntryScript.cpp
AutoEntryScript.h
ModuleLoader.cpp
ModuleLoader.h
moz.build
nsIScriptElement.cpp
nsIScriptElement.h
nsIScriptLoaderObserver.h
ScriptCompression.cpp
ScriptCompression.h
ScriptDecoding.h
ScriptElement.cpp
ScriptElement.h
ScriptLoadContext.cpp
ScriptLoadContext.h Bug 1877703 - Part 1: Remove speculatively preloaded modules from the module map when import map is registered r=smaug,allstarschh 2024-03-19 10:07:34 +00:00
ScriptLoader.cpp Bug 1877703 - Part 3: Also remove currently fetching preload modules from the module map when import map is registered r=smaug 2024-03-19 10:07:35 +00:00
ScriptLoader.h Bug 1800896 - Move padding of the bytecode vector into SaveSRIHash. r=arai 2024-03-18 14:26:57 +00:00
ScriptLoadHandler.cpp
ScriptLoadHandler.h
ScriptSettings.cpp
ScriptSettings.h
ScriptTrace.h
ShadowRealmGlobalScope.cpp
ShadowRealmGlobalScope.h