Bug 1842798 - Part 1: Remove use of MozPromise to wait for module fetch r=smaug
commitbaca1b8e1fc14a9a90f8e40452decae344b8cfa6
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)
tree8ba474bfb5f1c724b22315c865891dc345d32635
parent460072f62cde8f96da90ef31304a4b012dfcee48
Bug 1842798 - Part 1: Remove use of MozPromise to wait for module fetch r=smaug

This replaces the promise with a list of module requests that are waiting for a
resource to be fetched. When the fetch completes the waiting requests are
resumed appropriately. This now happens immediately rather tha via dispatching
a runnable.

Differential Revision: https://phabricator.services.mozilla.com/D183272
js/loader/ModuleLoaderBase.cpp
js/loader/ModuleLoaderBase.h