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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 837283003: Start replicating sandbox flags for OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Nasko's nit Created 5 years, 11 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
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index fdfa5584f5fe81be53d48c404d8ac5a8da5eea88..e310ae240da02a3c1820458dd50150b2be3fe0ae 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -509,7 +509,8 @@ bool RenderFrameHostImpl::CreateRenderFrame(int parent_routing_id,
DCHECK(GetProcess()->HasConnection());
- Send(new FrameMsg_NewFrame(routing_id_, parent_routing_id, proxy_routing_id));
+ Send(new FrameMsg_NewFrame(routing_id_, parent_routing_id, proxy_routing_id,
+ frame_tree_node()->current_replication_state()));
// The renderer now has a RenderFrame for this RenderFrameHost. Note that
// this path is only used for out-of-process iframes. Main frame RenderFrames
@@ -559,7 +560,8 @@ void RenderFrameHostImpl::OnAddMessageToConsole(
}
void RenderFrameHostImpl::OnCreateChildFrame(int new_routing_id,
- const std::string& frame_name) {
+ const std::string& frame_name,
+ SandboxFlags sandbox_flags) {
// It is possible that while a new RenderFrameHost was committed, the
// RenderFrame corresponding to this host sent an IPC message to create a
// frame and it is delivered after this host is swapped out.
@@ -576,6 +578,8 @@ void RenderFrameHostImpl::OnCreateChildFrame(int new_routing_id,
// after the CreateChildFrame IPC was sent.
new_frame->set_render_frame_created(true);
+ new_frame->frame_tree_node()->set_sandbox_flags(sandbox_flags);
+
if (delegate_)
delegate_->RenderFrameCreated(new_frame);
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/frame_host/render_frame_host_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698