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

Issue 82033002: Always create FrameTreeNodes and RenderFrameHosts for every frame. (Closed)

Created:
7 years, 1 month ago by Charlie Reis
Modified:
6 years, 9 months ago
Reviewers:
kenrb, awong, nasko
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org, dcheng, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Always create FrameTreeNodes and RenderFrameHosts for every frame. This allows us to run the FrameTreeShape tests without a flag. BUG=245126 TEST=FrameTreeBrowserTest.FrameTreeShape* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237119

Patch Set 1 : Initial patch #

Total comments: 11

Patch Set 2 : Fix lifetime issues #

Patch Set 3 : Fix two bugs with slow/crashed renderers; add tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -124 lines) Patch
A content/browser/frame_host/frame_tree_browsertest.cc View 1 2 1 chunk +169 lines, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 1 chunk +2 lines, -1 line 2 comments Download
M content/browser/site_per_process_browsertest.cc View 1 chunk +0 lines, -77 lines 0 comments Download
M content/common/frame_messages.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_render_thread.h View 1 3 chunks +12 lines, -0 lines 0 comments Download
M content/public/test/mock_render_thread.cc View 1 4 chunks +13 lines, -1 line 0 comments Download
M content/public/test/render_view_test.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 chunks +36 lines, -43 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Charlie Reis
Albert, this is based on your draft (https://codereview.chromium.org/32343006/). Do you have any time to take ...
7 years, 1 month ago (2013-11-21 23:59:14 UTC) #1
nasko
LGTM with just one question about disappearing comment. https://codereview.chromium.org/82033002/diff/30001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/82033002/diff/30001/content/renderer/render_frame_impl.cc#newcode265 content/renderer/render_frame_impl.cc:265: // ...
7 years, 1 month ago (2013-11-22 00:09:00 UTC) #2
Charlie Reis
https://codereview.chromium.org/82033002/diff/30001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/82033002/diff/30001/content/renderer/render_frame_impl.cc#newcode265 content/renderer/render_frame_impl.cc:265: // The |is_detaching_| flag disables Send(). FrameHostMsg_Detach must be ...
7 years, 1 month ago (2013-11-22 00:13:20 UTC) #3
nasko
https://codereview.chromium.org/82033002/diff/30001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/82033002/diff/30001/content/renderer/render_frame_impl.cc#newcode265 content/renderer/render_frame_impl.cc:265: // The |is_detaching_| flag disables Send(). FrameHostMsg_Detach must be ...
7 years, 1 month ago (2013-11-22 00:25:04 UTC) #4
dcheng
On 2013/11/22 00:25:04, nasko wrote: > https://codereview.chromium.org/82033002/diff/30001/content/renderer/render_frame_impl.cc > File content/renderer/render_frame_impl.cc (right): > > https://codereview.chromium.org/82033002/diff/30001/content/renderer/render_frame_impl.cc#newcode265 > ...
7 years, 1 month ago (2013-11-22 00:41:26 UTC) #5
awong
Thanks for doing this! I didn't look at the tests, but I have a question ...
7 years, 1 month ago (2013-11-22 01:07:14 UTC) #6
Charlie Reis
It's possible I'm misunderstanding something, but that doesn't match what I'm seeing. https://codereview.chromium.org/82033002/diff/30001/content/renderer/render_view_impl.h File content/renderer/render_view_impl.h ...
7 years, 1 month ago (2013-11-22 02:07:23 UTC) #7
Charlie Reis
Ok, thanks for your comments offline. Here's another patch that tries to get the lifetime ...
7 years, 1 month ago (2013-11-22 03:10:34 UTC) #8
awong
LGTM Nice comments. https://codereview.chromium.org/82033002/diff/30001/content/browser/frame_host/frame_tree_browsertest.cc File content/browser/frame_host/frame_tree_browsertest.cc (right): https://codereview.chromium.org/82033002/diff/30001/content/browser/frame_host/frame_tree_browsertest.cc#newcode21 content/browser/frame_host/frame_tree_browsertest.cc:21: FrameTreeBrowserTest() {} nit: Unless there's precedent, ...
7 years, 1 month ago (2013-11-22 03:19:28 UTC) #9
awong
LGTM Nice comments.
7 years, 1 month ago (2013-11-22 03:19:29 UTC) #10
Charlie Reis
[+site-isolation-reviews@chromium.org, since I forgot to earlier] Nasko, can you take a look at the diff ...
7 years, 1 month ago (2013-11-23 00:56:37 UTC) #11
Charlie Reis
https://codereview.chromium.org/82033002/diff/30001/content/browser/frame_host/frame_tree_browsertest.cc File content/browser/frame_host/frame_tree_browsertest.cc (right): https://codereview.chromium.org/82033002/diff/30001/content/browser/frame_host/frame_tree_browsertest.cc#newcode21 content/browser/frame_host/frame_tree_browsertest.cc:21: FrameTreeBrowserTest() {} On 2013/11/22 03:19:29, awong wrote: > nit: ...
7 years, 1 month ago (2013-11-23 01:04:16 UTC) #12
nasko
Great job on catching these! Still LGTM with one comment. https://codereview.chromium.org/82033002/diff/390001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/82033002/diff/390001/content/browser/renderer_host/render_view_host_impl.cc#newcode1387 ...
7 years, 1 month ago (2013-11-23 01:05:21 UTC) #13
Charlie Reis
kenrb: Can you review frame_message.h for IPC OWNERS? I just had to add an include ...
7 years, 1 month ago (2013-11-23 01:20:13 UTC) #14
kenrb
lgtm
7 years ago (2013-11-25 17:04:25 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/82033002/390001
7 years ago (2013-11-25 17:09:12 UTC) #16
commit-bot: I haz the power
7 years ago (2013-11-25 19:28:55 UTC) #17
Message was sent while issue was closed.
Change committed as 237119

Powered by Google App Engine
This is Rietveld 408576698