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

Issue 1159183002: Improve process crash handling in RenderViewHost & mock RenderProcessHost. (Closed)

Created:
5 years, 6 months ago by nasko
Modified:
5 years, 6 months ago
Reviewers:
ncarter (slow), sadrul
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve process crash handling in RenderViewHost & mock RenderProcessHost. Currently the mock RenderProcessHost always lies about having a connection to the renderer process. This CL aims to make it more realistic by keeping track of process initialization and crashing. Additionally, RenderViewHost can directly monitor the RenderProcessHost for crashes instead of relying on the RenderFrameHost to notify it. The CL includes the decoupling of the two. BUG=357747 Committed: https://crrev.com/954b02627a8c041cc5d3af2ae57593407bd4570b Cr-Commit-Position: refs/heads/master@{#332462}

Patch Set 1 #

Patch Set 2 : Fix for WebViewInteractiveUiTest.TextInputClientIsUpToDate #

Total comments: 4

Patch Set 3 : Rebase on ToT. #

Patch Set 4 : Move init to TestWebContents. #

Patch Set 5 : Rebase on ToT. #

Patch Set 6 : Revert moving to TestWebContents::Create and fix Mac failures. #

Patch Set 7 : Fix compile problem in webview_interactive_uitest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -18 lines) Patch
M content/browser/frame_host/frame_tree_unittest.cc View 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 2 chunks +1 line, -11 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 3 chunks +8 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/public/test/mock_render_process_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 4 chunks +8 lines, -1 line 0 comments Download
M content/public/test/test_renderer_host.cc View 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/webview/webview_interactive_uitest.cc View 1 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
nasko
Hey Nick, Can you review this CL for me? It cleans up a bit process ...
5 years, 6 months ago (2015-05-29 13:45:52 UTC) #2
ncarter (slow)
https://codereview.chromium.org/1159183002/diff/20001/ui/views/controls/webview/webview_interactive_uitest.cc File ui/views/controls/webview/webview_interactive_uitest.cc (right): https://codereview.chromium.org/1159183002/diff/20001/ui/views/controls/webview/webview_interactive_uitest.cc#newcode93 ui/views/controls/webview/webview_interactive_uitest.cc:93: web_contents1->GetRenderViewHost()->GetProcess()->Init(); web_contents1 is created via [WebView::GetWebContents=>WebView::CreateWebContents=>WebViewTestViewsDelegate::CreateWebContents=>WebContentsTester::CreateTestWebContents=>TestWebContents::Create] You need the ...
5 years, 6 months ago (2015-05-29 17:31:31 UTC) #3
nasko
Unfortunately, the CL this builds on (https://codereview.chromium.org/1151973005/) was reverted and needs to reland for this ...
5 years, 6 months ago (2015-06-01 19:00:09 UTC) #5
ncarter (slow)
lgtm
5 years, 6 months ago (2015-06-01 19:13:20 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159183002/120001
5 years, 6 months ago (2015-06-02 17:53:54 UTC) #9
nasko
Hey Nick, As we discussed, I reverted to not using TestWebContents::Create and fixed up the ...
5 years, 6 months ago (2015-06-02 17:54:44 UTC) #11
ncarter (slow)
lgtm
5 years, 6 months ago (2015-06-02 17:58:39 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159183002/140001
5 years, 6 months ago (2015-06-02 18:16:29 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-02 19:48:17 UTC) #17
sadrul
lgtm
5 years, 6 months ago (2015-06-02 20:41:27 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159183002/140001
5 years, 6 months ago (2015-06-02 20:57:26 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 6 months ago (2015-06-02 21:02:44 UTC) #21
commit-bot: I haz the power
5 years, 6 months ago (2015-06-02 21:16:11 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/954b02627a8c041cc5d3af2ae57593407bd4570b
Cr-Commit-Position: refs/heads/master@{#332462}

Powered by Google App Engine
This is Rietveld 408576698