{
ASSERT(!policy.isNull());
- // Documents in a Content-Disposition: attachment sandbox should never send a Referer header,
- // even if the document has a meta tag saying otherwise.
- if (shouldEnforceContentDispositionAttachmentSandbox())
- return;
-
// Note that we're supporting both the standard and legacy keywords for referrer
// policies, as defined by http://www.w3.org/TR/referrer-policy/#referrer-policy-delivery-meta
if (equalIgnoringCase(policy, "no-referrer") || equalIgnoringCase(policy, "never"))
{
ASSERT(shouldEnforceContentDispositionAttachmentSandbox());
- setReferrerPolicy(ReferrerPolicyNever);
if (!isMediaDocument())
enforceSandboxFlags(SandboxAll);
else