| 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 9e1171988125dc51966ea8542e0e71df8278d26d..1347f12d66901cd30722e8696123e3b0c13080f3 100644
|
| --- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| @@ -438,6 +438,19 @@ void WebRemoteFrameImpl::setReplicatedName(const WebString& name,
|
| frame()->tree().setPrecalculatedName(name, uniqueName);
|
| }
|
|
|
| +void WebRemoteFrameImpl::setReplicatedFeaturePolicyHeader(
|
| + const WebString& headerValue) const {
|
| + if (RuntimeEnabledFeatures::featurePolicyEnabled()) {
|
| + SecurityContext* parentSecurityContext = nullptr;
|
| + if (parent()) {
|
| + Frame* parentFrame = frame()->client()->parent();
|
| + parentSecurityContext = parentFrame->securityContext();
|
| + }
|
| + frame()->securityContext()->setFeaturePolicyFromHeader(
|
| + headerValue, parentSecurityContext);
|
| + }
|
| +}
|
| +
|
| void WebRemoteFrameImpl::addReplicatedContentSecurityPolicyHeader(
|
| const WebString& headerValue,
|
| WebContentSecurityPolicyType type,
|
|
|