DescriptionDon't send NewFrameProxy for top-level remote frames.
If site A embeds a frame for site B, the process for B needs to create a remote frame to represent the top-level frame A. Currently, this is done when RenderFrameHostManager::CreateRenderFrame sends a ViewMsg_New to process B to create a swapped-out RenderView. However, after initializing the new view, CreateRenderFrame also sends a NewFrameProxy message, which isn't necessary because the remote frame has already been created. Note that nothing actually happens on the renderer side due to another bug with sending NewFrameProxy (crbug.com/423538).
This CL removes the call to InitRenderFrameProxy which sends the extra NewFrameProxy. We only need to send NewFrameProxy messages for subframes, and we should never hit this path for subframes with swapped_out being true (there's a CHECK on top of RFHM::CreateRenderFrame that ensures this).
BUG=423567
Committed: https://crrev.com/28d4362169d043400a389e70b4744b7e74b4559c
Cr-Commit-Position: refs/heads/master@{#299970}
Patch Set 1 #
Messages
Total messages: 10 (4 generated)
|