Index: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
index 36205fb2aa075575a6942c6a217ef89883b89104..34d5c91302b185181b05c4fbeb1e47437fd358d5 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
@@ -34,7 +34,6 @@ |
#include "core/loader/FrameLoader.h" |
#include "core/loader/FrameLoaderClient.h" |
#include "core/plugins/PluginView.h" |
-#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/weborigin/SecurityOrigin.h" |
namespace blink { |
@@ -297,11 +296,9 @@ bool HTMLFrameOwnerElement::loadOrRedirectSubframe(const KURL& url, const Atomic |
FrameLoadRequest frameLoadRequest(&document(), url, "_self", CheckContentSecurityPolicy); |
- if (RuntimeEnabledFeatures::referrerPolicyAttributeEnabled()) { |
- ReferrerPolicy policy = referrerPolicyAttribute(); |
- if (policy != ReferrerPolicyDefault) |
- frameLoadRequest.resourceRequest().setHTTPReferrer(SecurityPolicy::generateReferrer(policy, url, document().outgoingReferrer())); |
- } |
+ ReferrerPolicy policy = referrerPolicyAttribute(); |
+ if (policy != ReferrerPolicyDefault) |
+ frameLoadRequest.resourceRequest().setHTTPReferrer(SecurityPolicy::generateReferrer(policy, url, document().outgoingReferrer())); |
return parentFrame->loader().client()->createFrame(frameLoadRequest, frameName, this); |
} |