Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp |
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp |
index 221b5d1b93bf9ac66a8b100a51fd0e962a2a2521..281b8656944a8ab9a724bd70874460fd0e2112c3 100644 |
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp |
@@ -1014,11 +1014,8 @@ void SetFeaturePolicy(Document* document, const String& feature_policy_header) { |
feature_policy_header, frame->GetSecurityContext()->GetSecurityOrigin(), |
&messages); |
WebParsedFeaturePolicy container_policy; |
- if (frame->Owner()) { |
- container_policy = GetContainerPolicyFromAllowedFeatures( |
- frame->Owner()->AllowedFeatures(), |
- frame->GetSecurityContext()->GetSecurityOrigin()); |
- } |
+ if (frame->Owner()) |
+ container_policy = frame->Owner()->ContainerPolicy(); |
frame->GetSecurityContext()->InitializeFeaturePolicy( |
parsed_header, container_policy, parent_feature_policy); |