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

Issue 156303004: With --site-per-process, avoid a crash when a subframe process goes away. (Closed)

Created:
6 years, 10 months ago by Charlie Reis
Modified:
6 years, 10 months ago
Reviewers:
awong, nasko
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

With --site-per-process, avoid a crash when a subframe process goes away. We need to clear out the children of any nodes that are affected by the crash, not the entire FrameTree. BUG=338508 TEST=Killing an iframe process with --site-per-process shows a green rectangle. R=ajwong@chromium.org, nasko@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250823

Patch Set 1 #

Patch Set 2 : Fix CrossSiteIframe test #

Patch Set 3 : Disable on GTK, add test. #

Total comments: 20

Patch Set 4 : Fix review comments #

Patch Set 5 : Don't use SpawnedTestServer for Android. #

Patch Set 6 : Disable one test on Android #

Patch Set 7 : Remove incorrect Navigator DCHECK #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -11 lines) Patch
M content/browser/frame_host/frame_tree.h View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree.cc View 1 2 3 2 chunks +20 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree_node.h View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Charlie Reis
Albert, this still needs a test, but I wanted to get your thoughts on the ...
6 years, 10 months ago (2014-02-08 02:13:35 UTC) #1
Charlie Reis
Ok, test added. I've disabled these tests on GTK since RWHVChildFrame crashes there, and since ...
6 years, 10 months ago (2014-02-11 02:03:39 UTC) #2
nasko
Just a few comments. https://codereview.chromium.org/156303004/diff/110001/content/browser/frame_host/frame_tree.cc File content/browser/frame_host/frame_tree.cc (right): https://codereview.chromium.org/156303004/diff/110001/content/browser/frame_host/frame_tree.cc#newcode48 content/browser/frame_host/frame_tree.cc:48: bool ResetNodesForNewProcess(RenderViewHost* render_view_host, Shouldn't we ...
6 years, 10 months ago (2014-02-11 04:49:16 UTC) #3
awong
https://codereview.chromium.org/156303004/diff/110001/content/browser/frame_host/frame_tree.cc File content/browser/frame_host/frame_tree.cc (right): https://codereview.chromium.org/156303004/diff/110001/content/browser/frame_host/frame_tree.cc#newcode49 content/browser/frame_host/frame_tree.cc:49: FrameTreeNode** out_node, Why bother with out_node at all?
6 years, 10 months ago (2014-02-11 18:24:16 UTC) #4
Charlie Reis
Thanks! I've addressed your comments and also removed the use of SpawnedTestServer, since that's broken ...
6 years, 10 months ago (2014-02-12 00:27:56 UTC) #5
nasko
LGTM
6 years, 10 months ago (2014-02-12 00:41:41 UTC) #6
awong
LGTM
6 years, 10 months ago (2014-02-12 00:42:43 UTC) #7
Charlie Reis
Ok, I carved out the CrossSiteIframe test into its own CL (https://codereview.chromium.org/147363007/) and landed it ...
6 years, 10 months ago (2014-02-12 21:10:05 UTC) #8
Charlie Reis
6 years, 10 months ago (2014-02-12 23:06:11 UTC) #9
Message was sent while issue was closed.
Committed patchset #8 manually as r250823 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698