Bug 1520274 - Allow serving BinAST scripts with nosniff. (r=baku, r=dveditz)

This commit is contained in:
Eric Faust
2019-01-30 10:50:47 -08:00
parent 953e13fc47
commit ede2067cf5
5 changed files with 19 additions and 10 deletions

View File

@@ -301,7 +301,7 @@ nsresult ScriptLoadHandler::EnsureKnownDataType(
MOZ_ASSERT(altDataType.IsEmpty());
}
if (ScriptLoader::BinASTEncodingEnabled()) {
if (nsJSUtils::BinASTEncodingEnabled()) {
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(req);
if (httpChannel) {
nsAutoCString mimeType;