summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-03 19:50:55 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-03 19:50:55 +0200
commit3968897fb4b227b1a634700cbeaea715e58ac543 (patch)
treef07bc2a6ec5b759ba56180200070bc3485e52dee /netwerk/protocol
parentdc8aad9b9dc6983bb88aa586f34d9db007840eb8 (diff)
downloadUXP-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')
-rw-r--r--netwerk/protocol/http/nsHttpChannel.cpp2
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");