Bug 1842798 - Part 2: Remove use of MozPromise to wait for module imports to load...
commit85b88021dfcf43a84ec4e31abbeaf66232152a9b
authorJon Coppeard <jcoppeard@mozilla.com>
Thu, 3 Aug 2023 08:15:29 +0000 (3 08:15 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Thu, 3 Aug 2023 08:15:29 +0000 (3 08:15 +0000)
treec113105371d03b6c63ad605ae103b14bfcf39690
parentbaca1b8e1fc14a9a90f8e40452decae344b8cfa6
Bug 1842798 - Part 2: Remove use of MozPromise to wait for module imports to load r=smaug

This replaces the use of a promise to wait for all imports of a module to load
with a counter of reminaing imports in the parent and a pointer to the parent
that is waiting in the child. The parent request is updated immediately rather
than by dispatching a runnable.

Differential Revision: https://phabricator.services.mozilla.com/D183273
dom/workers/ScriptLoader.cpp
js/loader/ModuleLoadRequest.cpp
js/loader/ModuleLoadRequest.h
js/loader/ModuleLoaderBase.cpp
js/loader/ModuleLoaderBase.h