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 Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau 2023-10-24 15:18:12 +00:00
AutoEntryScript.h Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau 2023-10-24 15:18:12 +00:00
ModuleLoader.cpp Bug 1875836 - Part 1: Add ModuleLoadRequest::SetDynamicImport method. r=jonco 2024-01-23 23:29:53 +00:00
ModuleLoader.h Bug 1871075 - Part 1: Store referencing private as a pointer to the underlying LoadedScript r=yulia 2023-12-21 13:30:34 +00:00
ScriptCompression.cpp Bug 1828654 - Move deflateInit before deflateBound r=nbp 2023-12-13 16:10:36 +00:00
ScriptCompression.h
ScriptDecoding.h
ScriptElement.cpp Bug 1872839 - Remove aMimeTypeGuess parameter from nsIContentPolicy. r=freddyb 2024-01-08 15:47:42 +00:00
ScriptElement.h Bug 1834134 - Create base ScriptElement GetScriptType method r=peterv 2023-06-22 19:42:30 +00:00
ScriptLoadContext.cpp Bug 1839315: part 3) Remove no-op method `PreloaderBase::PrioritizeAsPreload`. r=necko-reviewers,valentin 2023-10-11 10:21:56 +00:00
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
ScriptLoadHandler.cpp Bug 1800641 - Part 8: Add LoadContextBase* parameter to ScriptLoadRequest methods which is going to be moved to LoadedScriptDelegate. r=nbp 2024-01-08 14:57:38 +00:00
ScriptLoadHandler.h
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
ScriptSettings.cpp Bug 1856795 - Remove redundant member init r=emilio 2023-10-15 15:29:02 +00:00
ScriptSettings.h
ScriptTrace.h
ShadowRealmGlobalScope.cpp Bug 1848771 part 1 - Stop eagerly initializing JS standard classes for non-Window globals. r=peterv 2024-01-23 15:06:32 +00:00
ShadowRealmGlobalScope.h Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu 2023-10-10 08:51:12 +00:00
moz.build Bug 1881748, part 2 - Turn nsIScriptLoaderObserver.idl into nsIScriptLoaderObserver.h. r=dom-core,peterv 2024-02-27 17:13:00 +00:00
nsIScriptElement.cpp Bug 1853547 - Remove dom.importMaps.enabled pref r=allstarschh 2024-01-06 01:53:19 +00:00
nsIScriptElement.h Bug 1864168 - Part 6: Use 1-origin column number in ScriptLoader and nsIScriptElement. r=smaug,devtools-reviewers,hsivonen,ochameau 2023-11-22 12:31:32 +00:00
nsIScriptLoaderObserver.h Bug 1881748, part 2 - Turn nsIScriptLoaderObserver.idl into nsIScriptLoaderObserver.h. r=dom-core,peterv 2024-02-27 17:13:00 +00:00