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

Issue 1814863002: Make page popups work under OOPIF (Closed)

Created:
4 years, 9 months ago by kenrb
Modified:
4 years, 9 months ago
Reviewers:
bokan, dcheng, jbroman, nasko, lfg
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, gavinp+loader_chromium.org, jam, Nate Chapin, kinuko+watch, kozyatinskiy+blink_chromium.org, loading-reviews_chromium.org, lushnikov+blink_chromium.org, nasko+codewatch_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, site-isolation-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make page popups work under OOPIF The following changes were needed for select menu popups to work from an out of process iframe: - the ShowWidget message has to be processed by the inactive subframe RenderViewHostImpl - the view_screen_rect on the OOPIF RenderWidget must get updated properly, reflecting the location and size of the OOPIF on the screen - ChromeClient::viewportToScreen in Blink has to become frame specific, since it needs to use the Widget associated with the local roo BUG=554119 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/c52e1b4e0b1d9692a192f2a2d2594919849bc510 Cr-Commit-Position: refs/heads/master@{#382209}

Patch Set 1 #

Total comments: 13

Patch Set 2 : WebContentsImpl::SendScreenRects simplified #

Total comments: 13

Patch Set 3 : Rebase, test added #

Patch Set 4 : Review comments addressed #

Total comments: 2

Patch Set 5 : Fixed bad cast #

Patch Set 6 : Added test for realz #

Patch Set 7 : Nit addressed #

Patch Set 8 : Test fix #

Patch Set 9 : Added TestNavigationObserver to test to fix flakiness #

Patch Set 10 : Disabled test on Mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -36 lines) Patch
M content/browser/frame_host/cross_process_frame_connector.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/cross_process_frame_connector.cc View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +108 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M content/common/swapped_out_messages.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A + content/test/data/site_isolation/page-with-select.html View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/HostWindow.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 1 chunk +15 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/ColorChooserPopupUIController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ColorChooserUIController.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/PopupMenuImpl.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (12 generated)
kenrb
I haven't finished writing tests for this yet, but I would appreciate any comments on ...
4 years, 9 months ago (2016-03-17 15:16:27 UTC) #4
nasko
Some initial comments on content/ bits. https://codereview.chromium.org/1814863002/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/1814863002/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode986 content/browser/renderer_host/render_view_host_impl.cc:986: ->is_active()) Is this ...
4 years, 9 months ago (2016-03-17 17:25:45 UTC) #5
kenrb
https://codereview.chromium.org/1814863002/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/1814863002/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode986 content/browser/renderer_host/render_view_host_impl.cc:986: ->is_active()) On 2016/03/17 17:25:45, nasko (slow) wrote: > Is ...
4 years, 9 months ago (2016-03-17 18:59:48 UTC) #6
nasko
https://codereview.chromium.org/1814863002/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/1814863002/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode986 content/browser/renderer_host/render_view_host_impl.cc:986: ->is_active()) On 2016/03/17 18:59:48, kenrb wrote: > On 2016/03/17 ...
4 years, 9 months ago (2016-03-17 19:10:46 UTC) #7
kenrb
https://codereview.chromium.org/1814863002/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/1814863002/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode986 content/browser/renderer_host/render_view_host_impl.cc:986: ->is_active()) On 2016/03/17 19:10:46, nasko (slow) wrote: > On ...
4 years, 9 months ago (2016-03-17 20:00:06 UTC) #8
dcheng
+bokan to look at the blink bits (I'll think more about the plumbing questions tonight, ...
4 years, 9 months ago (2016-03-17 20:21:35 UTC) #10
nasko
https://codereview.chromium.org/1814863002/diff/1/content/common/swapped_out_messages.cc File content/common/swapped_out_messages.cc (right): https://codereview.chromium.org/1814863002/diff/1/content/common/swapped_out_messages.cc#newcode53 content/common/swapped_out_messages.cc:53: case ViewHostMsg_CreateWidget::ID: On 2016/03/17 20:00:06, kenrb wrote: > On ...
4 years, 9 months ago (2016-03-17 21:05:32 UTC) #11
bokan
https://codereview.chromium.org/1814863002/diff/20001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/1814863002/diff/20001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode510 third_party/WebKit/Source/web/ChromeClientImpl.cpp:510: IntRect ChromeClientImpl::viewportToScreen(const IntRect& rectInViewport, const Widget* widget) const It ...
4 years, 9 months ago (2016-03-18 15:27:36 UTC) #12
lfg
https://codereview.chromium.org/1814863002/diff/20001/content/browser/frame_host/render_widget_host_view_child_frame.cc File content/browser/frame_host/render_widget_host_view_child_frame.cc (right): https://codereview.chromium.org/1814863002/diff/20001/content/browser/frame_host/render_widget_host_view_child_frame.cc#newcode75 content/browser/frame_host/render_widget_host_view_child_frame.cc:75: } I don't think this is enough, we need ...
4 years, 9 months ago (2016-03-18 15:46:00 UTC) #13
kenrb
Thanks for the reviews. PTAL again? https://codereview.chromium.org/1814863002/diff/1/content/browser/frame_host/cross_process_frame_connector.h File content/browser/frame_host/cross_process_frame_connector.h (right): https://codereview.chromium.org/1814863002/diff/1/content/browser/frame_host/cross_process_frame_connector.h#newcode132 content/browser/frame_host/cross_process_frame_connector.h:132: void SetRect(gfx::Rect frame_rect); ...
4 years, 9 months ago (2016-03-18 17:46:10 UTC) #14
lfg
https://codereview.chromium.org/1814863002/diff/20001/content/browser/frame_host/render_widget_host_view_child_frame.cc File content/browser/frame_host/render_widget_host_view_child_frame.cc (right): https://codereview.chromium.org/1814863002/diff/20001/content/browser/frame_host/render_widget_host_view_child_frame.cc#newcode75 content/browser/frame_host/render_widget_host_view_child_frame.cc:75: } On 2016/03/18 17:46:10, kenrb wrote: > On 2016/03/18 ...
4 years, 9 months ago (2016-03-18 18:53:54 UTC) #15
bokan
Blink changes lgtm https://codereview.chromium.org/1814863002/diff/20001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/1814863002/diff/20001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode510 third_party/WebKit/Source/web/ChromeClientImpl.cpp:510: IntRect ChromeClientImpl::viewportToScreen(const IntRect& rectInViewport, const Widget* ...
4 years, 9 months ago (2016-03-18 19:25:43 UTC) #16
kenrb
nasko: PTAL again? Lucas pointed out a bug, but if the impact is very small ...
4 years, 9 months ago (2016-03-18 20:03:19 UTC) #18
lfg
https://codereview.chromium.org/1814863002/diff/20001/content/browser/frame_host/render_widget_host_view_child_frame.cc File content/browser/frame_host/render_widget_host_view_child_frame.cc (right): https://codereview.chromium.org/1814863002/diff/20001/content/browser/frame_host/render_widget_host_view_child_frame.cc#newcode75 content/browser/frame_host/render_widget_host_view_child_frame.cc:75: } On 2016/03/18 20:03:19, kenrb wrote: > On 2016/03/18 ...
4 years, 9 months ago (2016-03-18 20:06:20 UTC) #19
jbroman
Source/platform/ lgtm
4 years, 9 months ago (2016-03-18 20:17:04 UTC) #20
nasko
Thanks for all the fixes! LGTM
4 years, 9 months ago (2016-03-18 22:18:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814863002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814863002/160001
4 years, 9 months ago (2016-03-18 22:34:56 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/197677)
4 years, 9 months ago (2016-03-18 23:54:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814863002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814863002/180001
4 years, 9 months ago (2016-03-19 18:40:13 UTC) #29
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 9 months ago (2016-03-20 01:03:46 UTC) #31
commit-bot: I haz the power
4 years, 9 months ago (2016-03-20 01:05:06 UTC) #33
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c52e1b4e0b1d9692a192f2a2d2594919849bc510
Cr-Commit-Position: refs/heads/master@{#382209}

Powered by Google App Engine
This is Rietveld 408576698