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

Issue 1820043002: Update nested OOPIF's screen rects when parent is repositioned in page. (Closed)

Created:
4 years, 9 months ago by kenrb
Modified:
4 years, 9 months ago
Reviewers:
nasko, lfg
CC:
site-isolation-reviews_chromium.org, 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

Update nested OOPIF's screen rects when parent is repositioned in page. When an out-of-process iframe is repositioned in its parent frame, a FrameHostMsg_FrameRectChanged message prompts the browser to notify the OOPIF with its new screen position. However, it needs to propagate this message to any further descendant OOPIFs whose positions are implicitly affected. This patch adds to FrameTree the ability to iterate through a subtree of FrameTreeNodes, and uses this to find descendant OOPIFs and update their screen rects. BUG=554119 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/61b6c251433a39bf4e77b23df172b42df2bd1a2e Cr-Commit-Position: refs/heads/master@{#382598}

Patch Set 1 #

Total comments: 18

Patch Set 2 : nasko comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -16 lines) Patch
M content/browser/frame_host/cross_process_frame_connector.cc View 1 chunk +18 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree.h View 1 3 chunks +8 lines, -4 lines 0 comments Download
M content/browser/frame_host/frame_tree.cc View 1 3 chunks +13 lines, -8 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 3 chunks +116 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
kenrb
PTAL: - lfg I'd appreciate comment on whether this fixes the bug - nasko for ...
4 years, 9 months ago (2016-03-21 21:00:40 UTC) #4
lfg
Nice, that was a quick fix! lgtm
4 years, 9 months ago (2016-03-22 01:54:42 UTC) #5
nasko
https://codereview.chromium.org/1820043002/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/1820043002/diff/1/content/browser/frame_host/cross_process_frame_connector.cc#newcode264 content/browser/frame_host/cross_process_frame_connector.cc:264: if (node != proxy_node && nit: Why not add ...
4 years, 9 months ago (2016-03-22 13:56:55 UTC) #6
kenrb
Thanks for the review. Any other issues? https://codereview.chromium.org/1820043002/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/1820043002/diff/1/content/browser/frame_host/cross_process_frame_connector.cc#newcode264 content/browser/frame_host/cross_process_frame_connector.cc:264: if (node ...
4 years, 9 months ago (2016-03-22 15:40:20 UTC) #7
nasko
LGTM https://codereview.chromium.org/1820043002/diff/1/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/1820043002/diff/1/content/browser/site_per_process_browsertest.cc#newcode5322 content/browser/site_per_process_browsertest.cc:5322: // doesn't seem to be any better way ...
4 years, 9 months ago (2016-03-22 16:18:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820043002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820043002/20001
4 years, 9 months ago (2016-03-22 16:18:49 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-22 17:37:25 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 17:39:11 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/61b6c251433a39bf4e77b23df172b42df2bd1a2e
Cr-Commit-Position: refs/heads/master@{#382598}

Powered by Google App Engine
This is Rietveld 408576698