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

Issue 2236753002: OOPIF: Reinitialize a dead subframe correctly for same-site navigations. (Closed)

Created:
4 years, 4 months ago by alexmos
Modified:
4 years, 4 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@crash-RenderView-pending-rfh
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

OOPIF: Reinitialize a dead subframe correctly for same-site navigations. Currently, if a subframe renderer dies, the subframe cannot be re-navigated to the same site, because the corresponding code path in RenderFrameHostManager::Navigate() uses InitRenderView which only revives top-level RenderFrames. This CL adds support to also revive subframe RenderFrames. Since PlzNavigate also relied on this logic, duplicating it in GetFrameHostForNavigation, the new logic is extracted into a common helper. BUG=634368 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/c15fab9e2bbeeb86d3188db4c4eac85dccd1d8d9 Cr-Commit-Position: refs/heads/master@{#411479}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix Charlie's nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -8 lines) Patch
M content/browser/frame_host/render_frame_host_manager.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 4 chunks +36 lines, -8 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 1 chunk +56 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (11 generated)
alexmos
Charlie, can you please take a look at whether this makes sense? https://codereview.chromium.org/2236753002/diff/1/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc ...
4 years, 4 months ago (2016-08-11 01:07:31 UTC) #7
Charlie Reis
Thanks for tracking this down! LGTM. https://codereview.chromium.org/2236753002/diff/1/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/2236753002/diff/1/content/browser/frame_host/render_frame_host_manager.cc#newcode2039 content/browser/frame_host/render_frame_host_manager.cc:2039: if (!InitRenderView(render_frame_host->render_view_host(), nullptr)) ...
4 years, 4 months ago (2016-08-11 18:50:30 UTC) #8
alexmos
Thanks! https://codereview.chromium.org/2236753002/diff/1/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2236753002/diff/1/content/browser/site_per_process_browsertest.cc#newcode7765 content/browser/site_per_process_browsertest.cc:7765: // Test the a crashed subframe can be ...
4 years, 4 months ago (2016-08-11 20:45:48 UTC) #9
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/2236753002/20001
4 years, 4 months ago (2016-08-11 20:46:25 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/276428)
4 years, 4 months ago (2016-08-11 22:06:13 UTC) #14
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/2236753002/20001
4 years, 4 months ago (2016-08-11 23:29:39 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-12 00:30:57 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 00:33:02 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c15fab9e2bbeeb86d3188db4c4eac85dccd1d8d9
Cr-Commit-Position: refs/heads/master@{#411479}

Powered by Google App Engine
This is Rietveld 408576698