| Index: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| index 22e296b62586eb79f0ba8352fa68802afc2e7e9b..c9c5d51561a8f472835e2e2d52592a03e9dd0bbf 100644
|
| --- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| @@ -426,13 +426,8 @@ void WebRemoteFrameImpl::SetReplicatedFeaturePolicyHeader(
|
| parent_frame->GetSecurityContext()->GetFeaturePolicy();
|
| }
|
| WebParsedFeaturePolicy container_policy;
|
| - if (GetFrame() && GetFrame()->Owner()) {
|
| - container_policy = GetContainerPolicyFromAllowedFeatures(
|
| - GetFrame()->Owner()->AllowedFeatures(),
|
| - GetFrame()->Owner()->AllowFullscreen(),
|
| - GetFrame()->Owner()->AllowPaymentRequest(),
|
| - GetFrame()->GetSecurityContext()->GetSecurityOrigin());
|
| - }
|
| + if (GetFrame()->Owner())
|
| + container_policy = GetFrame()->Owner()->ContainerPolicy();
|
| GetFrame()->GetSecurityContext()->InitializeFeaturePolicy(
|
| parsed_header, container_policy, parent_feature_policy);
|
| }
|
|
|