Revert "Issue #2258 - Part 2: Move XCTO:nosniff check into sniffers."

This reverts commit 51e1650d42b2c033d5d55750b4ea497053524c93.
This commit is contained in:
Moonchild 2025-09-23 18:17:45 +02:00 committed by roytam1
commit 73c9c1dd73
5 changed files with 14 additions and 17 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
// GetMIMETypeFromContent we then bail early and do not do any sniffing.
// NS_SniffContent we then bail early and do not do any sniffing.
aLoadInfo->SetSkipContentSniffing(true);
return NS_OK;
}