| Index: third_party/WebKit/Source/web/WebFrame.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp
|
| index 323ffa9709c18977163fdd417058897ed75206cd..7b66d737ec63d00b7fceaffaf6ea729311dd969d 100644
|
| --- a/third_party/WebKit/Source/web/WebFrame.cpp
|
| +++ b/third_party/WebKit/Source/web/WebFrame.cpp
|
| @@ -135,6 +135,15 @@ void WebFrame::setFrameOwnerSandboxFlags(WebSandboxFlags flags) {
|
| toRemoteFrameOwner(owner)->setSandboxFlags(static_cast<SandboxFlags>(flags));
|
| }
|
|
|
| +void WebFrame::setFrameOwnerContainerPolicy(
|
| + const blink::WebParsedFeaturePolicy& containerPolicy) {
|
| + // At the moment, this is only used to replicate the container policy for
|
| + // frames with a remote owner.
|
| + FrameOwner* owner = toImplBase()->frame()->owner();
|
| + DCHECK(owner);
|
| + toRemoteFrameOwner(owner)->setContainerPolicy(containerPolicy);
|
| +}
|
| +
|
| WebInsecureRequestPolicy WebFrame::getInsecureRequestPolicy() const {
|
| return toImplBase()->frame()->securityContext()->getInsecureRequestPolicy();
|
| }
|
|
|