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); |
} |