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

Issue 2086083003: Cache RenderFrameHost's parent so it doesn't change over time. (Closed)

Created:
4 years, 6 months ago by Charlie Reis
Modified:
4 years, 6 months ago
Reviewers:
alexmos, dcheng
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, 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

Cache RenderFrameHost's parent so it doesn't change over time. RenderFrameHost::GetParent() should always return the same value for a given frame. However, we will soon allow RenderFrameHosts to continue to exist briefly in the background in a pending deletion state, such that we can wait for their unload handlers, PageState, etc. In these cases, the parent FrameTreeNode will have already moved to a new current RenderFrameHost. Rather than asking the parent FrameTreeNode, just cache the parent RenderFrameHost in the child. BUG=609963 TEST=No behavior change. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/dab7c8f09b323e70dbcd457963e84d35276e0cea Cr-Commit-Position: refs/heads/master@{#401198}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -9 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 4 chunks +10 lines, -9 lines 3 comments Download

Messages

Total messages: 19 (9 generated)
Charlie Reis
Alex, can you take a look? This is another small piece to land before the ...
4 years, 6 months ago (2016-06-21 22:30:19 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086083003/1
4 years, 6 months ago (2016-06-21 23:12:15 UTC) #5
alexmos
LGTM with one quick question. https://codereview.chromium.org/2086083003/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2086083003/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode263 content/browser/frame_host/render_frame_host_impl.cc:263: parent_ = frame_tree_node_->parent()->current_frame_host(); Could ...
4 years, 6 months ago (2016-06-21 23:36:03 UTC) #6
dcheng
https://codereview.chromium.org/2086083003/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2086083003/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode263 content/browser/frame_host/render_frame_host_impl.cc:263: parent_ = frame_tree_node_->parent()->current_frame_host(); On 2016/06/21 23:36:02, alexmos wrote: > ...
4 years, 6 months ago (2016-06-21 23:39:48 UTC) #8
Charlie Reis
Thanks! https://codereview.chromium.org/2086083003/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2086083003/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode263 content/browser/frame_host/render_frame_host_impl.cc:263: parent_ = frame_tree_node_->parent()->current_frame_host(); On 2016/06/21 23:39:47, dcheng wrote: ...
4 years, 6 months ago (2016-06-21 23:47:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086083003/1
4 years, 6 months ago (2016-06-21 23:51:02 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/242935)
4 years, 6 months ago (2016-06-22 01:38:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086083003/1
4 years, 6 months ago (2016-06-22 02:34:57 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-22 03:42:05 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 03:45:04 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/dab7c8f09b323e70dbcd457963e84d35276e0cea
Cr-Commit-Position: refs/heads/master@{#401198}

Powered by Google App Engine
This is Rietveld 408576698