Backed out 3 changesets (bug 1487113) for causing hazard bustages. CLOSED TREE

Backed out changeset 13bf04fc644f (bug 1487113)
Backed out changeset 5b7fe5d564aa (bug 1487113)
Backed out changeset 02236ccd64b4 (bug 1487113)
This commit is contained in:
Marian-Vasile Laza
2021-09-17 22:58:33 +03:00
parent a028879b3a
commit 5226ca352c
34 changed files with 157 additions and 507 deletions

View File

@@ -1594,9 +1594,8 @@ nsresult ScriptLoader::StartLoad(ScriptLoadRequest* aRequest) {
// the bytecode cache instead of the sources, if such entry is already
// registered.
LOG(("ScriptLoadRequest (%p): Maybe request bytecode", aRequest));
cic->PreferAlternativeDataType(
nsContentUtils::JSBytecodeMimeType(), ""_ns,
nsICacheInfoChannel::PreferredAlternativeDataDeliveryType::ASYNC);
cic->PreferAlternativeDataType(nsContentUtils::JSBytecodeMimeType(),
""_ns, true);
} else {
// If we are explicitly loading from the sources, such as after a
// restarted request, we might still want to save the bytecode after.
@@ -1605,9 +1604,7 @@ nsresult ScriptLoader::StartLoad(ScriptLoadRequest* aRequest) {
// does not exist, such that we can later save the bytecode with a
// different alternative data type.
LOG(("ScriptLoadRequest (%p): Request saving bytecode later", aRequest));
cic->PreferAlternativeDataType(
kNullMimeType, ""_ns,
nsICacheInfoChannel::PreferredAlternativeDataDeliveryType::ASYNC);
cic->PreferAlternativeDataType(kNullMimeType, ""_ns, true);
}
}