mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 23:18:46 +00:00
Issue #618 - Record module dependency before starting fetch so that error
handling works correctly Ref BZ 1395896
This commit is contained in:
@@ -793,6 +793,7 @@ ScriptLoader::StartFetchingModuleAndDependencies(ModuleLoadRequest* aRequest,
|
||||
childRequest->mIsInline = false;
|
||||
childRequest->mReferrerPolicy = aRequest->mReferrerPolicy;
|
||||
childRequest->mParent = aRequest;
|
||||
aRequest->mImports.AppendElement(childRequest);
|
||||
|
||||
RefPtr<GenericPromise> ready = childRequest->mReady.Ensure(__func__);
|
||||
|
||||
@@ -803,7 +804,6 @@ ScriptLoader::StartFetchingModuleAndDependencies(ModuleLoadRequest* aRequest,
|
||||
return ready;
|
||||
}
|
||||
|
||||
aRequest->mImports.AppendElement(childRequest);
|
||||
return ready;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user