Bug 1520274 - Allow serving BinAST scripts with nosniff. (r=baku, r=dveditz)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user