X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Fdom%2FDocument.cpp;h=b824efbda8438079de37fe990da73904872862da;hp=e06dbc8a20bb9a75e54a1aa55f8168090cbb1d4e;hb=de836e4463f923198f4229eabb92079a98e2515b;hpb=ae644399fe32f6c09aa9c5f4eeac1e588014fdde;ds=sidebyside diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp index e06dbc8a20bb..b824efbda843 100644 --- a/Source/WebCore/dom/Document.cpp +++ b/Source/WebCore/dom/Document.cpp @@ -3339,11 +3339,6 @@ void Document::processReferrerPolicy(const String& policy) { 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")) @@ -6876,7 +6871,6 @@ void Document::applyContentDispositionAttachmentSandbox() { ASSERT(shouldEnforceContentDispositionAttachmentSandbox()); - setReferrerPolicy(ReferrerPolicyNever); if (!isMediaDocument()) enforceSandboxFlags(SandboxAll); else