Backed out 3 changesets (bug 1487113) for causing mochitest failures. CLOSED TREE

Backed out changeset b20e5d76c77e (bug 1487113)
Backed out changeset b0b2b27dcb68 (bug 1487113)
Backed out changeset 9214b396eb84 (bug 1487113)
This commit is contained in:
Cristian Tuns
2021-09-14 17:38:32 -04:00
parent 7b358dc49a
commit 7430f772bb
34 changed files with 157 additions and 501 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);
}
}