Revert "Issue #2258 - Part 3: Allow sniffing with XCTO:nosniff + empty MIME type."

This reverts commit a56f978f70e2d96ba501d6a944be33460afc481a.
This commit is contained in:
Moonchild 2025-09-23 18:17:39 +02:00 committed by roytam1
commit 2d4d48db72
5 changed files with 35 additions and 31 deletions

View file

@ -1106,7 +1106,7 @@ ProcessXCTO(nsIURI* aURI, nsHttpResponseHead* aResponseHead, nsILoadInfo* aLoadI
policyType == nsIContentPolicy::TYPE_SUBDOCUMENT) {
// If the header XCTO nosniff is set for any browsing context, then
// we set the skipContentSniffing flag on the Loadinfo. Within
// NS_SniffContent we then bail early and do not do any sniffing.
// GetMIMETypeFromContent we then bail early and do not do any sniffing.
aLoadInfo->SetSkipContentSniffing(true);
return NS_OK;
}