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

Issue 9514016: Fixing a problem, where a hung renderer process is not killed when navigating away (Closed)

Created:
8 years, 9 months ago by nasko
Modified:
8 years, 9 months ago
Reviewers:
Charlie Reis, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Fixing a problem, where a hung renderer process is not killed when navigating away BUG=104346 TEST=Steps to reproduce listed in the bug. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126199 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126409

Patch Set 1 : #

Total comments: 26

Patch Set 2 : Incorporating Charlie's feedback. #

Total comments: 18

Patch Set 3 : Fixes based on feedback. #

Patch Set 4 : Removing the public API and replaced with iterator logic. #

Patch Set 5 : Updating to HEAD #

Patch Set 6 : Removed browser test assert. #

Patch Set 7 : Another sync #

Patch Set 8 : Fixing the mock code. #

Patch Set 9 : Updated #

Patch Set 10 : Fixing browsertest compile failure on ChromeOS. #

Patch Set 11 : Improving the test to use Observer for reliability. #

Patch Set 12 : Final update, fixing the input event bug. #

Patch Set 13 : Final cleanup update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -8 lines) Patch
M content/browser/renderer_host/render_view_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +88 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +62 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
A content/test/data/english_page.html View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A content/test/data/infinite_beforeunload.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A content/test/data/infinite_unload.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
nasko
This patch ensures we kill any hung renderer processes, while doing a cross-site navigation.
8 years, 9 months ago (2012-03-01 19:41:44 UTC) #1
Charlie Reis
https://chromiumcodereview.appspot.com/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc File content/browser/renderer_host/mock_render_process_host.cc (right): https://chromiumcodereview.appspot.com/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc#newcode218 content/browser/renderer_host/mock_render_process_host.cc:218: return false; Is this necessary for tests? Usually the ...
8 years, 9 months ago (2012-03-01 21:08:17 UTC) #2
nasko
Updated based on Charlie's feedback. https://chromiumcodereview.appspot.com/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc File content/browser/renderer_host/mock_render_process_host.cc (right): https://chromiumcodereview.appspot.com/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc#newcode218 content/browser/renderer_host/mock_render_process_host.cc:218: return false; On 2012/03/01 ...
8 years, 9 months ago (2012-03-01 22:50:15 UTC) #3
Charlie Reis
Thanks-- more comments inline. https://chromiumcodereview.appspot.com/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc File content/browser/renderer_host/mock_render_process_host.cc (right): https://chromiumcodereview.appspot.com/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc#newcode218 content/browser/renderer_host/mock_render_process_host.cc:218: return false; On 2012/03/01 22:50:15, ...
8 years, 9 months ago (2012-03-02 00:16:42 UTC) #4
jam
http://codereview.chromium.org/9514016/diff/18001/content/browser/renderer_host/render_process_host_browsertest.cc File content/browser/renderer_host/render_process_host_browsertest.cc (right): http://codereview.chromium.org/9514016/diff/18001/content/browser/renderer_host/render_process_host_browsertest.cc#newcode268 content/browser/renderer_host/render_process_host_browsertest.cc:268: FilePath(FILE_PATH_LITERAL("chrome/test/data"))); please don't hard code paths in tests. can ...
8 years, 9 months ago (2012-03-02 00:21:10 UTC) #5
nasko
I've made a bunch of changes based on the feedback. http://codereview.chromium.org/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc File content/browser/renderer_host/mock_render_process_host.cc (right): http://codereview.chromium.org/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc#newcode218 ...
8 years, 9 months ago (2012-03-02 18:40:36 UTC) #6
Charlie Reis
LGTM http://codereview.chromium.org/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc File content/browser/renderer_host/mock_render_process_host.cc (right): http://codereview.chromium.org/9514016/diff/12004/content/browser/renderer_host/mock_render_process_host.cc#newcode218 content/browser/renderer_host/mock_render_process_host.cc:218: return false; On 2012/03/02 18:40:36, nasko wrote: > ...
8 years, 9 months ago (2012-03-02 19:17:02 UTC) #7
nasko
John, can you take a look at this one today? Thanks.
8 years, 9 months ago (2012-03-05 17:30:20 UTC) #8
jam
http://codereview.chromium.org/9514016/diff/18001/content/public/browser/render_process_host.h File content/public/browser/render_process_host.h (right): http://codereview.chromium.org/9514016/diff/18001/content/public/browser/render_process_host.h#newcode185 content/public/browser/render_process_host.h:185: virtual bool TerminateOnUnresponsiveAllowed() const = 0; On 2012/03/02 19:17:02, ...
8 years, 9 months ago (2012-03-06 17:25:25 UTC) #9
nasko
Removed the public API. http://codereview.chromium.org/9514016/diff/18001/content/public/browser/render_process_host.h File content/public/browser/render_process_host.h (right): http://codereview.chromium.org/9514016/diff/18001/content/public/browser/render_process_host.h#newcode185 content/public/browser/render_process_host.h:185: virtual bool TerminateOnUnresponsiveAllowed() const = ...
8 years, 9 months ago (2012-03-06 18:16:25 UTC) #10
jam
lgtm
8 years, 9 months ago (2012-03-06 18:41:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/9514016/33001
8 years, 9 months ago (2012-03-06 21:07:37 UTC) #12
commit-bot: I haz the power
Can't apply patch for file content/browser/renderer_host/render_view_host.cc. While running patch -p1 --forward --force; patching file content/browser/renderer_host/render_view_host.cc ...
8 years, 9 months ago (2012-03-06 21:07:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/9514016/36001
8 years, 9 months ago (2012-03-06 21:31:39 UTC) #14
commit-bot: I haz the power
Can't apply patch for file content/browser/renderer_host/render_view_host.cc. While running patch -p1 --forward --force; patching file content/browser/renderer_host/render_view_host.cc ...
8 years, 9 months ago (2012-03-06 21:31:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/9514016/42001
8 years, 9 months ago (2012-03-07 17:15:52 UTC) #16
commit-bot: I haz the power
Try job failure for 9514016-42001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-07 18:19:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/9514016/44003
8 years, 9 months ago (2012-03-07 20:50:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/9514016/44003
8 years, 9 months ago (2012-03-08 16:19:56 UTC) #19
commit-bot: I haz the power
Try job failure for 9514016-44003 (retry) on win_rel for steps "unit_tests, content_unittests, browser_tests" (clobber build). ...
8 years, 9 months ago (2012-03-08 20:07:01 UTC) #20
Charlie Reis
Still LGTM. I think the change to MockRenderProcessHost might help with the windows failures. I ...
8 years, 9 months ago (2012-03-09 19:00:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/9514016/61001
8 years, 9 months ago (2012-03-09 19:00:32 UTC) #22
commit-bot: I haz the power
Try job failure for 9514016-61001 (retry) (retry) on win_rel for step "browser_tests" (clobber build). It's ...
8 years, 9 months ago (2012-03-09 22:18:04 UTC) #23
Charlie Reis
8 years, 9 months ago (2012-03-12 16:40:47 UTC) #24
Since the commit queue was having trouble with the Windows bot (looks like
http://crbug.com/113031), I've committed this manually:

http://src.chromium.org/viewvc/chrome?view=rev&revision=126151

Powered by Google App Engine
This is Rietveld 408576698