Index: content/browser/frame_host/frame_tree.cc |
diff --git a/content/browser/frame_host/frame_tree.cc b/content/browser/frame_host/frame_tree.cc |
index 27ed57ff1a32d0cfdabf81af901f6e28b2e0d496..b1ccf6f9c796d17b899eb5f90bbc2681508c5f93 100644 |
--- a/content/browser/frame_host/frame_tree.cc |
+++ b/content/browser/frame_host/frame_tree.cc |
@@ -47,8 +47,12 @@ bool FrameTreeNodeForId(int64 frame_tree_node_id, |
// given RenderViewHost's process. |
bool ResetNodesForNewProcess(RenderViewHost* render_view_host, |
FrameTreeNode* node) { |
- if (render_view_host == node->current_frame_host()->render_view_host()) |
+ if (render_view_host == node->current_frame_host()->render_view_host()) { |
+ // Ensure that if the frame host is reused for a new RenderFrame, it will |
+ // set up the Mojo connection with that frame. |
+ node->current_frame_host()->InvalidateMojoConnection(); |
node->ResetForNewProcess(); |
+ } |
return true; |
} |