diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-03 19:50:55 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-03 19:50:55 +0200 |
commit | 3968897fb4b227b1a634700cbeaea715e58ac543 (patch) | |
tree | f07bc2a6ec5b759ba56180200070bc3485e52dee /netwerk/protocol/http/nsHttpChannel.cpp | |
parent | dc8aad9b9dc6983bb88aa586f34d9db007840eb8 (diff) | |
download | UXP-3968897fb4b227b1a634700cbeaea715e58ac543.tar UXP-3968897fb4b227b1a634700cbeaea715e58ac543.tar.gz UXP-3968897fb4b227b1a634700cbeaea715e58ac543.tar.lz UXP-3968897fb4b227b1a634700cbeaea715e58ac543.tar.xz UXP-3968897fb4b227b1a634700cbeaea715e58ac543.zip |
Bug 1431095 - Change Content-Type-Options: nosniff allowed script MIME types to match the spec
Diffstat (limited to 'netwerk/protocol/http/nsHttpChannel.cpp')
-rw-r--r-- | netwerk/protocol/http/nsHttpChannel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp index ce0f45dab..94b0d9bf9 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -1152,7 +1152,7 @@ ProcessXCTO(nsIURI* aURI, nsHttpResponseHead* aResponseHead, nsILoadInfo* aLoadI } if (aLoadInfo->GetExternalContentPolicyType() == nsIContentPolicy::TYPE_SCRIPT) { - if (nsContentUtils::IsScriptType(contentType)) { + if (nsContentUtils::IsJavascriptMIMEType(NS_ConvertUTF8toUTF16(contentType))) { return NS_OK; } ReportTypeBlocking(aURI, aLoadInfo, "MimeTypeMismatch"); |