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

Issue 1420203007: Correctly find root RWHV from a nested WebContents (Closed)

Created:
5 years, 1 month ago by kenrb
Modified:
5 years, 1 month ago
Reviewers:
nasko
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

Correctly find root RWHV from a nested WebContents CrossProcessFrameConnector::GetRootRenderWidgetHostView() does not traverse up through a tree of WebContents, which results in infinite recursion. This adds a check for whether the current WebContents is nested, and returns the root of the outer WebContents if so. BUG=548912 R=nasko@chromium.org Committed: https://crrev.com/29e91242fd0e1db2632ac1a0f83d645080ce20d4 Cr-Commit-Position: refs/heads/master@{#357355}

Patch Set 1 #

Total comments: 2

Patch Set 2 : s/if/while #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -6 lines) Patch
M content/browser/frame_host/cross_process_frame_connector.cc View 1 1 chunk +11 lines, -6 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
kenrb
nasko: PTAL? The configuration of RenderWidgetHostViewChildFrame and CrossProcessFrameConnector for a nested WebContents is correct, I ...
5 years, 1 month ago (2015-10-30 21:22:22 UTC) #2
nasko
https://codereview.chromium.org/1420203007/diff/1/content/browser/frame_host/cross_process_frame_connector.cc File content/browser/frame_host/cross_process_frame_connector.cc (right): https://codereview.chromium.org/1420203007/diff/1/content/browser/frame_host/cross_process_frame_connector.cc#newcode235 content/browser/frame_host/cross_process_frame_connector.cc:235: if (top_host->frame_tree_node()->render_manager()->ForInnerDelegate()) { This will just go one level ...
5 years, 1 month ago (2015-10-30 21:29:12 UTC) #3
kenrb
https://codereview.chromium.org/1420203007/diff/1/content/browser/frame_host/cross_process_frame_connector.cc File content/browser/frame_host/cross_process_frame_connector.cc (right): https://codereview.chromium.org/1420203007/diff/1/content/browser/frame_host/cross_process_frame_connector.cc#newcode235 content/browser/frame_host/cross_process_frame_connector.cc:235: if (top_host->frame_tree_node()->render_manager()->ForInnerDelegate()) { On 2015/10/30 21:29:12, nasko (slow to ...
5 years, 1 month ago (2015-10-30 21:40:40 UTC) #4
nasko
LGTM
5 years, 1 month ago (2015-10-30 21:45:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420203007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420203007/20001
5 years, 1 month ago (2015-11-02 14:18:15 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-02 15:20:20 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-11-02 15:21:10 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/29e91242fd0e1db2632ac1a0f83d645080ce20d4
Cr-Commit-Position: refs/heads/master@{#357355}

Powered by Google App Engine
This is Rietveld 408576698