Set up Mojo connection when RenderFrameHost is reused for new RenderFrame
After a render process dies, the main RenderFrameHostImpl can be reused for a new RenderFrame in a new render process. In this case, the Mojo connection between the RFHI and the new RenderFrame was not being set up. This CL fixes the glitch and additionally future-proofs for the case where sub-frames can be reused as well: - When the FrameTree resets process state, it instructs the RFHI's affected to invalidate their Mojo connections. - When the RenderFrameHostManager creates a new RenderFrame for an RFHI, it instructs that RFHI to set up the Mojo connection if necessary. BUG=421069 TEST=Navigate to about://omnibox. Kill the tab via the Task Manager and reload. Observe that the page produces output upon submission of input. Review URL: https://codereview.chromium.org/666563005 Cr-Commit-Position: refs/heads/master@{#301329}
Showing
Please register or sign in to comment