fune/dom/base/test/jsmodules/importmaps/good/module_4.js
Yoshi Cheng-Hao Huang cc7663e997 Bug 1803984 - Part 5: Check IsModuleFetched() before removing it. r=jonco
The crash of https://bugzilla.mozilla.org/show_bug.cgi?id=1835468 can be
reproduced by HTTP redirect in mochitest-plain.

When the script is being processed, sometimes the preloaded request is
still being loaded (for example, the script is being redirected to
another place). So we use the IsModulleFetched() check before calling
RemoveFetchedModule.

Differential Revision: https://phabricator.services.mozilla.com/D182271
2023-06-28 08:43:43 +00:00

1 line
29 B
JavaScript

success("good/module_4.js");