Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2955573003: Set frame policy correctly in newly created renderer proxies (Closed)
Patch Set: Fix container policy replication bug in provisional frames Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 7f1a2216f22ec528a95b4020b7bb4c17bd000ea6..d548aaa5036b3263a71f293c1e86cbd1bcd2e8f9 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1510,9 +1510,11 @@ WebLocalFrame* WebLocalFrame::CreateProvisional(
blink::InterfaceProvider* interface_provider,
blink::InterfaceRegistry* interface_registry,
WebRemoteFrame* old_web_frame,
- WebSandboxFlags flags) {
- return WebLocalFrameImpl::CreateProvisional(
- client, interface_provider, interface_registry, old_web_frame, flags);
+ WebSandboxFlags flags,
+ WebParsedFeaturePolicy container_policy) {
+ return WebLocalFrameImpl::CreateProvisional(client, interface_provider,
+ interface_registry, old_web_frame,
+ flags, container_policy);
}
WebLocalFrameImpl* WebLocalFrameImpl::Create(
@@ -1532,7 +1534,8 @@ WebLocalFrameImpl* WebLocalFrameImpl::CreateProvisional(
blink::InterfaceProvider* interface_provider,
blink::InterfaceRegistry* interface_registry,
WebRemoteFrame* old_web_frame,
- WebSandboxFlags flags) {
+ WebSandboxFlags flags,
+ WebParsedFeaturePolicy container_policy) {
DCHECK(client);
WebLocalFrameImpl* web_frame = new WebLocalFrameImpl(
old_web_frame, client, interface_provider, interface_registry);
@@ -1559,6 +1562,8 @@ WebLocalFrameImpl* WebLocalFrameImpl::CreateProvisional(
if (new_frame->Owner() && new_frame->Owner()->IsRemote()) {
ToRemoteFrameOwner(new_frame->Owner())
->SetSandboxFlags(static_cast<SandboxFlags>(flags));
+ ToRemoteFrameOwner(new_frame->Owner())
+ ->SetContainerPolicy(container_policy);
}
return web_frame;
}
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698