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

Issue 2914013004: Propagate auto-resize viewport values to OOPIF processes (Closed)

Created:
3 years, 6 months ago by kenrb
Modified:
3 years, 6 months ago
Reviewers:
alexmos
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Propagate auto-resize viewport values to OOPIF processes RenderWidgetHostViewChildFrame currently gets its visible viewport size from the top-level RenderWidgetHostView, which typically comes from the platform window. However, when the top-level frame has auto-resize enabled, internally it sets its own visible viewport, and this information not available to OOPIF children. This causes issues in particular for extension popups which have window sizes of (0, 0) and rely on auto-resize to modify the viewport in Blink. This patch causes the WebContents to store the auto-resize value reported by the top-level frame and make it available to OOPIF RenderWidgetHostViews. They, in turn, allow an auto-resize size to override the windows size when determining their visible viewport. BUG=726743 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2914013004 Cr-Commit-Position: refs/heads/master@{#476772} Committed: https://chromium.googlesource.com/chromium/src/+/e4f9108cb1e95e813387cf0b7eca98992530fdb1

Patch Set 1 #

Total comments: 9

Patch Set 2 : alexmos review comments addressed #

Total comments: 4

Patch Set 3 : Change SendScreenRects call to WasResized; fixed test breakage #

Total comments: 1

Patch Set 4 : Style tidy-up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -0 lines) Patch
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame_browsertest.cc View 1 3 chunks +41 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (18 generated)
kenrb
alexmos@: PTAL for content owner review?
3 years, 6 months ago (2017-06-01 21:15:42 UTC) #5
alexmos
Thanks for the fix! Looks good, just a couple of questions. https://codereview.chromium.org/2914013004/diff/1/content/browser/frame_host/render_widget_host_view_child_frame_browsertest.cc File content/browser/frame_host/render_widget_host_view_child_frame_browsertest.cc (right): ...
3 years, 6 months ago (2017-06-02 00:45:22 UTC) #8
kenrb
Thanks for reviewing! PTAL again? https://codereview.chromium.org/2914013004/diff/1/content/browser/frame_host/render_widget_host_view_child_frame_browsertest.cc File content/browser/frame_host/render_widget_host_view_child_frame_browsertest.cc (right): https://codereview.chromium.org/2914013004/diff/1/content/browser/frame_host/render_widget_host_view_child_frame_browsertest.cc#newcode80 content/browser/frame_host/render_widget_host_view_child_frame_browsertest.cc:80: // RenderWidgetHostViews. On 2017/06/02 ...
3 years, 6 months ago (2017-06-02 15:44:47 UTC) #11
alexmos
Thanks! One other quick clarification question below. https://codereview.chromium.org/2914013004/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2914013004/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode2794 content/browser/web_contents/web_contents_impl.cc:2794: for (FrameTreeNode* ...
3 years, 6 months ago (2017-06-02 17:03:18 UTC) #14
kenrb
My last change had broken a test, that should be fixed now along with the ...
3 years, 6 months ago (2017-06-02 17:23:27 UTC) #17
alexmos
Thanks! LGTM https://codereview.chromium.org/2914013004/diff/40001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/2914013004/diff/40001/content/browser/renderer_host/render_view_host_impl.cc#newcode938 content/browser/renderer_host/render_view_host_impl.cc:938: if (GetWidget()->delegate()) { nit: {} not necessary ...
3 years, 6 months ago (2017-06-02 17:31:16 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2914013004/60001
3 years, 6 months ago (2017-06-02 18:51:56 UTC) #23
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 20:32:25 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e4f9108cb1e95e813387cf0b7eca...

Powered by Google App Engine
This is Rietveld 408576698