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

Issue 1159143008: Fix wrong initialization of renderer_initiated_creation parameter. (Closed)

Created:
5 years, 6 months ago by lfg
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix wrong initialization of renderer_initiated_creation parameter. Initialize the renderer_initiated_creation parameter as true only when a RenderFrame was created in the renderer process. This fixes an issue where the Render{Frame,View}Created observer from WebContentsObserver can be called before the process is alive (and therefore, the RenderFrame can't possibly have been created). BUG=492830 Committed: https://crrev.com/269b702fb4c4d30aa2d4d103a3710095a7002b7d Cr-Commit-Position: refs/heads/master@{#333316}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : adding check #

Total comments: 1

Patch Set 6 : moving to web contents obeserver sanity checker #

Patch Set 7 : trying some ideas #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : fixing unittests #

Patch Set 12 : rebase #

Patch Set 13 : fixing after rebase #

Total comments: 8

Patch Set 14 : switching to InitializeRenderFrameIfNeeded #

Patch Set 15 : addressing nick's comments #

Total comments: 8

Patch Set 16 : addressing mmenke@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -12 lines) Patch
M chrome/browser/background/background_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/frame_navigation_state_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -1 line 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (6 generated)
lfg
PTAL, thanks!
5 years, 6 months ago (2015-06-03 23:58:13 UTC) #2
nasko
Thanks for fixing this! It looks good, but I know Nick and Avi had a ...
5 years, 6 months ago (2015-06-04 16:56:38 UTC) #4
lfg
https://codereview.chromium.org/1159143008/diff/60001/content/browser/frame_host/render_frame_host_manager_browsertest.cc File content/browser/frame_host/render_frame_host_manager_browsertest.cc (right): https://codereview.chromium.org/1159143008/diff/60001/content/browser/frame_host/render_frame_host_manager_browsertest.cc#newcode1826 content/browser/frame_host/render_frame_host_manager_browsertest.cc:1826: class InstallRFCObserver : public WebContentsAddedObserver { On 2015/06/04 16:56:38, ...
5 years, 6 months ago (2015-06-04 17:34:13 UTC) #5
ncarter (slow)
https://codereview.chromium.org/1159143008/diff/80001/content/browser/frame_host/render_frame_host_manager_browsertest.cc File content/browser/frame_host/render_frame_host_manager_browsertest.cc (right): https://codereview.chromium.org/1159143008/diff/80001/content/browser/frame_host/render_frame_host_manager_browsertest.cc#newcode1822 content/browser/frame_host/render_frame_host_manager_browsertest.cc:1822: ->IsRenderFrameLive()); Rather than opening up WebContentsObserver so that we ...
5 years, 6 months ago (2015-06-04 18:20:46 UTC) #6
lfg
On 2015/06/04 18:20:46, ncarter wrote: > https://codereview.chromium.org/1159143008/diff/80001/content/browser/frame_host/render_frame_host_manager_browsertest.cc > File content/browser/frame_host/render_frame_host_manager_browsertest.cc > (right): > > https://codereview.chromium.org/1159143008/diff/80001/content/browser/frame_host/render_frame_host_manager_browsertest.cc#newcode1822 ...
5 years, 6 months ago (2015-06-05 20:52:00 UTC) #8
nasko
Looks good, though one universal comment. Replace the CreateRenderView calls with InitializeRenderFrameIfNeeded. It does a ...
5 years, 6 months ago (2015-06-05 21:23:43 UTC) #9
lfg
On 2015/06/05 21:23:43, nasko wrote: > Looks good, though one universal comment. Replace the CreateRenderView ...
5 years, 6 months ago (2015-06-05 21:35:22 UTC) #10
nasko
LGTM
5 years, 6 months ago (2015-06-05 21:39:10 UTC) #11
ncarter (slow)
https://codereview.chromium.org/1159143008/diff/260001/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/1159143008/diff/260001/chrome/browser/background/background_contents.cc#newcode47 chrome/browser/background/background_contents.cc:47: create_params.renderer_initiated_creation = routing_id != MSG_ROUTING_NONE; What are the (non-test) ...
5 years, 6 months ago (2015-06-05 21:47:50 UTC) #12
lfg
https://codereview.chromium.org/1159143008/diff/260001/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/1159143008/diff/260001/chrome/browser/background/background_contents.cc#newcode47 chrome/browser/background/background_contents.cc:47: create_params.renderer_initiated_creation = routing_id != MSG_ROUTING_NONE; On 2015/06/05 21:47:50, ncarter ...
5 years, 6 months ago (2015-06-05 22:07:07 UTC) #13
ncarter (slow)
lgtm https://codereview.chromium.org/1159143008/diff/260001/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/1159143008/diff/260001/chrome/browser/background/background_contents.cc#newcode47 chrome/browser/background/background_contents.cc:47: create_params.renderer_initiated_creation = routing_id != MSG_ROUTING_NONE; On 2015/06/05 22:07:06, ...
5 years, 6 months ago (2015-06-05 22:12:09 UTC) #14
lfg
Adding reviewers: +atwilson@: for chrome/browser/background +mmenke@: for chrome/browser/captive_portal and chrome/browser/net Please take a look. Thanks!
5 years, 6 months ago (2015-06-08 15:51:57 UTC) #16
mmenke
https://codereview.chromium.org/1159143008/diff/300001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc File chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc (right): https://codereview.chromium.org/1159143008/diff/300001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc#newcode82 chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc:82: ->InitializeRenderFrameIfNeeded(); Why are these needed? What do they do? ...
5 years, 6 months ago (2015-06-08 16:09:50 UTC) #17
Andrew T Wilson (Slow)
lgtm
5 years, 6 months ago (2015-06-08 16:32:17 UTC) #18
lfg
https://codereview.chromium.org/1159143008/diff/300001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc File chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc (right): https://codereview.chromium.org/1159143008/diff/300001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc#newcode82 chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc:82: ->InitializeRenderFrameIfNeeded(); On 2015/06/08 16:09:49, mmenke wrote: > Need to ...
5 years, 6 months ago (2015-06-08 17:04:02 UTC) #19
mmenke
https://codereview.chromium.org/1159143008/diff/300001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc File chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc (right): https://codereview.chromium.org/1159143008/diff/300001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc#newcode82 chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc:82: ->InitializeRenderFrameIfNeeded(); On 2015/06/08 17:04:01, lfg wrote: > On 2015/06/08 ...
5 years, 6 months ago (2015-06-08 17:15:06 UTC) #20
lfg
Please, take another look. Thanks! https://codereview.chromium.org/1159143008/diff/300001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc File chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc (right): https://codereview.chromium.org/1159143008/diff/300001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc#newcode82 chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc:82: ->InitializeRenderFrameIfNeeded(); On 2015/06/08 17:15:06, ...
5 years, 6 months ago (2015-06-08 18:25:51 UTC) #21
mmenke
Thanks! LGTM
5 years, 6 months ago (2015-06-08 18:32:44 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159143008/320001
5 years, 6 months ago (2015-06-08 19:23:59 UTC) #25
commit-bot: I haz the power
Committed patchset #16 (id:320001)
5 years, 6 months ago (2015-06-08 19:28:31 UTC) #26
commit-bot: I haz the power
5 years, 6 months ago (2015-06-08 19:29:29 UTC) #27
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/269b702fb4c4d30aa2d4d103a3710095a7002b7d
Cr-Commit-Position: refs/heads/master@{#333316}

Powered by Google App Engine
This is Rietveld 408576698