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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user