1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 23:13:55 +00:00

[DOM] Check whether module load request was already cancelled when a load fails

This commit is contained in:
Moonchild
2023-02-19 13:10:29 +01:00
committed by roytam1
parent bca689b483
commit bc50a7d3c6
+5
View File
@@ -148,6 +148,11 @@ ModuleLoadRequest::LoadFailed()
// We failed to load the source text or an error occurred unrelated to the
// content of the module (e.g. OOM).
if (IsCanceled()) {
return;
}
MOZ_ASSERT(!IsReadyToRun());
MOZ_ASSERT(!mModuleScript);
Cancel();