Bug 1991945. r=farre a=pascalc
Original Revision: https://phabricator.services.mozilla.com/D267575 Differential Revision: https://phabricator.services.mozilla.com/D270313
This commit is contained in:
committed by
pchevrel@mozilla.com
parent
3342eff1d0
commit
16d805c5e8
@@ -2915,7 +2915,8 @@ nsresult ProcessXCTO(HttpBaseChannel* aChannel, nsIURI* aURI,
|
|||||||
|
|
||||||
auto policyType = aLoadInfo->GetExternalContentPolicyType();
|
auto policyType = aLoadInfo->GetExternalContentPolicyType();
|
||||||
if (policyType == ExtContentPolicy::TYPE_DOCUMENT ||
|
if (policyType == ExtContentPolicy::TYPE_DOCUMENT ||
|
||||||
policyType == ExtContentPolicy::TYPE_SUBDOCUMENT) {
|
policyType == ExtContentPolicy::TYPE_SUBDOCUMENT ||
|
||||||
|
policyType == ExtContentPolicy::TYPE_OBJECT) {
|
||||||
// If the header XCTO nosniff is set for any browsing context, then
|
// If the header XCTO nosniff is set for any browsing context, then
|
||||||
// we set the skipContentSniffing flag on the Loadinfo. Within
|
// we set the skipContentSniffing flag on the Loadinfo. Within
|
||||||
// GetMIMETypeFromContent we then bail early and do not do any sniffing.
|
// GetMIMETypeFromContent we then bail early and do not do any sniffing.
|
||||||
|
|||||||
Reference in New Issue
Block a user