mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-18 05:07:31 +09:00
Issue #618 - Record module dependency before starting fetch so that error
handling works correctly Ref BZ 1395896
This commit is contained in:
parent
39050b430e
commit
40017437ab
1 changed files with 1 additions and 1 deletions
|
|
@ -793,6 +793,7 @@ ScriptLoader::StartFetchingModuleAndDependencies(ModuleLoadRequest* aRequest,
|
||||||
childRequest->mIsInline = false;
|
childRequest->mIsInline = false;
|
||||||
childRequest->mReferrerPolicy = aRequest->mReferrerPolicy;
|
childRequest->mReferrerPolicy = aRequest->mReferrerPolicy;
|
||||||
childRequest->mParent = aRequest;
|
childRequest->mParent = aRequest;
|
||||||
|
aRequest->mImports.AppendElement(childRequest);
|
||||||
|
|
||||||
RefPtr<GenericPromise> ready = childRequest->mReady.Ensure(__func__);
|
RefPtr<GenericPromise> ready = childRequest->mReady.Ensure(__func__);
|
||||||
|
|
||||||
|
|
@ -803,7 +804,6 @@ ScriptLoader::StartFetchingModuleAndDependencies(ModuleLoadRequest* aRequest,
|
||||||
return ready;
|
return ready;
|
||||||
}
|
}
|
||||||
|
|
||||||
aRequest->mImports.AppendElement(childRequest);
|
|
||||||
return ready;
|
return ready;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue