mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
Bug 1811939 - Check whether module load request was already cancelled when a load fails r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D167927
This commit is contained in:
parent
859e63e756
commit
15081498f4
@ -175,6 +175,11 @@ void ModuleLoadRequest::LoadFailed() {
|
||||
|
||||
LOG(("ScriptLoadRequest (%p): Module load failed", this));
|
||||
|
||||
if (IsCanceled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(!IsReadyToRun());
|
||||
MOZ_ASSERT(!mModuleScript);
|
||||
|
||||
Cancel();
|
||||
|
Loading…
Reference in New Issue
Block a user