Backed out 9 changesets (bug 1688879) for bustages on ImportMap.cpp
Backed out changeset 44e9abe72a5e (bug 1688879) Backed out changeset 0503d2d2ae01 (bug 1688879) Backed out changeset 2cf08a51b184 (bug 1688879) Backed out changeset 6f0276c3ab0e (bug 1688879) Backed out changeset f16b14d8f677 (bug 1688879) Backed out changeset 03b772e02d07 (bug 1688879) Backed out changeset 39ed48a5ecc2 (bug 1688879) Backed out changeset d7b42d8312bb (bug 1688879) Backed out changeset 5e695bf5dd0d (bug 1688879)
This commit is contained in:
@@ -113,17 +113,6 @@ nsresult ModuleLoader::StartFetch(ModuleLoadRequest* aRequest) {
|
||||
nsresult rv = GetScriptLoader()->StartLoadInternal(aRequest, securityFlags);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// https://wicg.github.io/import-maps/#document-acquiring-import-maps
|
||||
//
|
||||
// An import map is accepted if and only if it is added (i.e., its
|
||||
// corresponding script element is added) before the first module load is
|
||||
// started, even if the loading of the import map file doesn’t finish before
|
||||
// the first module load is started.
|
||||
if (!aRequest->GetScriptLoadContext()->IsPreload()) {
|
||||
LOG(("ScriptLoadRequest (%p): SetAcquiringImportMaps false", aRequest));
|
||||
SetAcquiringImportMaps(false);
|
||||
}
|
||||
|
||||
LOG(("ScriptLoadRequest (%p): Start fetching module", aRequest));
|
||||
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user