mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Bug 1431095 - Change Content-Type-Options: nosniff allowed script MIME types to match the spec
This commit is contained in:
parent
83b729c6a1
commit
8f4e22e819
4 changed files with 10 additions and 23 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue