Bug 1842798 - Part 2: Remove use of MozPromise to wait for module imports to load...
commit737882912072989646bcea116f91fa2cd7c8e0ae
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 2 Aug 2023 09:34:39 +0000 (2 09:34 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Wed, 2 Aug 2023 09:34:39 +0000 (2 09:34 +0000)
tree7e88e7309d6d0aa14d1597369c1146a73bd4334d
parenta71d4dc77cfa615c18bdba2bebfa8f523252a5f8
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