mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-07 07:47:30 +09:00
[DOM] Check whether module load request was already cancelled when a load fails
This commit is contained in:
parent
bca689b483
commit
bc50a7d3c6
1 changed files with 5 additions and 0 deletions
|
|
@ -148,6 +148,11 @@ ModuleLoadRequest::LoadFailed()
|
||||||
// We failed to load the source text or an error occurred unrelated to the
|
// We failed to load the source text or an error occurred unrelated to the
|
||||||
// content of the module (e.g. OOM).
|
// content of the module (e.g. OOM).
|
||||||
|
|
||||||
|
if (IsCanceled()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
MOZ_ASSERT(!IsReadyToRun());
|
||||||
MOZ_ASSERT(!mModuleScript);
|
MOZ_ASSERT(!mModuleScript);
|
||||||
|
|
||||||
Cancel();
|
Cancel();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue