Roll out http://trac.webkit.org/r193984, because the new test is timing out.
[WebKit-https.git] / Source / WebCore / dom / Document.cpp
index e06dbc8..b824efb 100644 (file)
@@ -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