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

Issue 2619123002: Fix remote-to-local navigations in crashed subframes. (Closed)

Created:
3 years, 11 months ago by alexmos
Modified:
3 years, 11 months ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix remote-to-local navigations in crashed subframes. Previously, these navigations were aborted due to this unfortunate sequence of events: 1. A new provisional RenderFrame is created with a proxy_routing_id_ of the proxy that it would replace once it commits. 2. RFHM::UpdateStateForNavigate calls CommitPending early, because the current RFH was not live (crashed). This destroys the RenderFrameProxy to which the RenderFrame's proxy_routing_id_ in step (1) referred. 3. Next, when navigating the frame, RenderFrameImpl::OnNavigate checks whether the proxy it's supposed to replace still exists, and aborts the navigation because it doesn't. This CL avoids this problem by sending a new IPC message, FrameMsg_SwapIn, to the provisional frame when doing the early CommitPending call in step (2). This ensures that the renderer also swaps the provisional frame into the tree, replacing its associated proxy. BUG=487872 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2619123002 Cr-Commit-Position: refs/heads/master@{#443378} Committed: https://chromium.googlesource.com/chromium/src/+/f65a795a9bdbb809993025c4f37260ccd38302ef

Patch Set 1 #

Patch Set 2 : Rebase and cleanup #

Total comments: 1

Patch Set 3 : Try new approach (trigger early swap in renderer when navigating sad iframe) #

Patch Set 4 : Nits #

Patch Set 5 : Self-review #

Total comments: 6

Patch Set 6 : Charlie's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -41 lines) Patch
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 1 chunk +49 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 4 chunks +53 lines, -39 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (31 generated)
alexmos
Hey Charlie, can you please take a look? See my analysis for this in https://crbug.com/487872#c10. ...
3 years, 11 months ago (2017-01-09 19:44:58 UTC) #10
Charlie Reis
On 2017/01/09 19:44:58, alexmos wrote: > Hey Charlie, can you please take a look? See ...
3 years, 11 months ago (2017-01-10 00:18:09 UTC) #13
alexmos
On 2017/01/10 00:18:09, Charlie Reis wrote: > On 2017/01/09 19:44:58, alexmos wrote: > > Hey ...
3 years, 11 months ago (2017-01-11 02:19:33 UTC) #21
Charlie Reis
On 2017/01/11 02:19:33, alexmos wrote: > On 2017/01/10 00:18:09, Charlie Reis wrote: > > On ...
3 years, 11 months ago (2017-01-12 00:29:05 UTC) #22
alexmos
Thanks, Charlie! I'll experiment with proactively deleting the provisional frame when a proxy is detached ...
3 years, 11 months ago (2017-01-12 01:38:12 UTC) #26
nasko
IPC LGTM
3 years, 11 months ago (2017-01-12 19:14:46 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2619123002/100001
3 years, 11 months ago (2017-01-12 21:57:00 UTC) #36
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 22:04:43 UTC) #39
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f65a795a9bdbb809993025c4f372...

Powered by Google App Engine
This is Rietveld 408576698