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

Issue 92873004: Prevent the browser process from creating duplicate RenderViewHosts. (Closed)

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

Description

Prevent the browser process from creating duplicate RenderViewHosts. BUG=312016 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238575

Patch Set 1 #

Patch Set 2 : Working test! #

Patch Set 3 : Don't kill invalid process. #

Total comments: 26

Patch Set 4 : Fixes based on Charlie's review. #

Patch Set 5 : Fixes based on Charlie's review. #

Total comments: 8

Patch Set 6 : Fixing nits. #

Patch Set 7 : Make g++ happy. #

Patch Set 8 : Fix DCHECK condition. #

Patch Set 9 : Using CHECK and better test. #

Total comments: 10

Patch Set 10 : Cleanup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -7 lines) Patch
M content/browser/frame_host/interstitial_page_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +94 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +22 lines, -0 lines 0 comments Download
M content/test/test_web_contents.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_web_contents.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
nasko
Hey Charlie, I finally nailed a test for the duplicate RVH. The fix should be ...
7 years ago (2013-11-28 01:23:36 UTC) #1
Charlie Reis
Great! Nice strategy with the test, to use a RVH factory. A few questions below, ...
7 years ago (2013-12-02 19:22:49 UTC) #2
nasko
Addressed all comments. https://codereview.chromium.org/92873004/diff/40001/content/browser/renderer_host/render_view_host_delegate.h File content/browser/renderer_host/render_view_host_delegate.h (right): https://codereview.chromium.org/92873004/diff/40001/content/browser/renderer_host/render_view_host_delegate.h#newcode385 content/browser/renderer_host/render_view_host_delegate.h:385: // should be created associated with ...
7 years ago (2013-12-02 20:19:12 UTC) #3
Charlie Reis
Great, just a few more nits. https://codereview.chromium.org/92873004/diff/80001/content/browser/security_exploit_browsertest.cc File content/browser/security_exploit_browsertest.cc (right): https://codereview.chromium.org/92873004/diff/80001/content/browser/security_exploit_browsertest.cc#newcode104 content/browser/security_exploit_browsertest.cc:104: typedef base::hash_set<std::pair<int,int> > ...
7 years ago (2013-12-02 22:25:34 UTC) #4
nasko
Fixed nits. https://codereview.chromium.org/92873004/diff/80001/content/browser/security_exploit_browsertest.cc File content/browser/security_exploit_browsertest.cc (right): https://codereview.chromium.org/92873004/diff/80001/content/browser/security_exploit_browsertest.cc#newcode104 content/browser/security_exploit_browsertest.cc:104: typedef base::hash_set<std::pair<int,int> > DuplicatesSet; On 2013/12/02 22:25:34, ...
7 years ago (2013-12-02 22:51:07 UTC) #5
Charlie Reis
Thanks! LGTM.
7 years ago (2013-12-02 23:17:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/92873004/160001
7 years ago (2013-12-03 01:54:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/92873004/160001
7 years ago (2013-12-03 02:16:25 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=230981
7 years ago (2013-12-03 05:50:27 UTC) #9
nasko
Charlie, I've changed the test and added the CHECK we've discussed. PTAL. Thanks, Nasko
7 years ago (2013-12-03 21:54:42 UTC) #10
Charlie Reis
Much nicer. Just a bit of cleanup and it should be good to go. https://codereview.chromium.org/92873004/diff/180001/content/browser/security_exploit_browsertest.cc ...
7 years ago (2013-12-03 22:15:48 UTC) #11
nasko
Cleanup performed! https://codereview.chromium.org/92873004/diff/180001/content/browser/security_exploit_browsertest.cc File content/browser/security_exploit_browsertest.cc (right): https://codereview.chromium.org/92873004/diff/180001/content/browser/security_exploit_browsertest.cc#newcode65 content/browser/security_exploit_browsertest.cc:65: // This is a helper function for ...
7 years ago (2013-12-03 22:25:38 UTC) #12
Charlie Reis
LGTM
7 years ago (2013-12-03 22:29:04 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/92873004/200001
7 years ago (2013-12-04 00:28:17 UTC) #14
commit-bot: I haz the power
7 years ago (2013-12-04 04:58:27 UTC) #15
Message was sent while issue was closed.
Change committed as 238575

Powered by Google App Engine
This is Rietveld 408576698