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

Issue 2339503002: Allow OOPIFs to capture mouse input while mouse button is held down (Closed)

Created:
4 years, 3 months ago by kenrb
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow OOPIFs to capture mouse input while mouse button is held down Currently, if you perform a mouse dragging action on an OOPIF such as moving a scroll bar or selecting text, and the mouse cursor moves out of the OOPIF, input events get routed to the parent frame so the dragging action stops working. This CL cause the browser process to lock input to a single RenderWidgetHostView while a mouse button is being held down, correcting that problem. BUG=529377 Committed: https://crrev.com/30d21915acf01e3cb5746b1a3cb2e8786c2bd841 Cr-Commit-Position: refs/heads/master@{#418940}

Patch Set 1 #

Total comments: 8

Patch Set 2 : mustaq review comments addressed #

Total comments: 2

Patch Set 3 : Clear capture target on its destruction #

Total comments: 6

Patch Set 4 : nasko comments addressed #

Patch Set 5 : rebase #

Patch Set 6 : Fix test breakage caused by rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -2 lines) Patch
M content/browser/renderer_host/render_widget_host_input_event_router.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_input_event_router.cc View 1 2 3 4 2 chunks +24 lines, -2 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 1 chunk +131 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (21 generated)
kenrb
dtapuska: PTAL? This is a small change that locks mouse input for OOPIFs.
4 years, 3 months ago (2016-09-13 16:05:09 UTC) #6
dtapuska
Do we ever want to support drag and drop from an OOPIF?
4 years, 3 months ago (2016-09-13 16:12:38 UTC) #8
kenrb
On 2016/09/13 16:12:38, dtapuska wrote: > Do we ever want to support drag and drop ...
4 years, 3 months ago (2016-09-13 16:16:28 UTC) #9
mustaq
https://codereview.chromium.org/2339503002/diff/1/content/browser/renderer_host/render_widget_host_input_event_router.cc File content/browser/renderer_host/render_widget_host_input_event_router.cc (right): https://codereview.chromium.org/2339503002/diff/1/content/browser/renderer_host/render_widget_host_input_event_router.cc#newcode153 content/browser/renderer_host/render_widget_host_input_event_router.cc:153: event->type != blink::WebInputEvent::MouseDown) { Please also check that event ...
4 years, 3 months ago (2016-09-13 16:57:15 UTC) #10
kenrb
https://codereview.chromium.org/2339503002/diff/1/content/browser/renderer_host/render_widget_host_input_event_router.cc File content/browser/renderer_host/render_widget_host_input_event_router.cc (right): https://codereview.chromium.org/2339503002/diff/1/content/browser/renderer_host/render_widget_host_input_event_router.cc#newcode153 content/browser/renderer_host/render_widget_host_input_event_router.cc:153: event->type != blink::WebInputEvent::MouseDown) { On 2016/09/13 16:57:15, mustaq wrote: ...
4 years, 3 months ago (2016-09-13 20:01:53 UTC) #12
dtapuska
On 2016/09/13 20:01:53, kenrb wrote: > https://codereview.chromium.org/2339503002/diff/1/content/browser/renderer_host/render_widget_host_input_event_router.cc > File content/browser/renderer_host/render_widget_host_input_event_router.cc > (right): > > https://codereview.chromium.org/2339503002/diff/1/content/browser/renderer_host/render_widget_host_input_event_router.cc#newcode153 ...
4 years, 3 months ago (2016-09-13 20:08:49 UTC) #14
kenrb
On 2016/09/13 20:08:49, dtapuska wrote: > On 2016/09/13 20:01:53, kenrb wrote: > > > https://codereview.chromium.org/2339503002/diff/1/content/browser/renderer_host/render_widget_host_input_event_router.cc ...
4 years, 3 months ago (2016-09-13 20:11:32 UTC) #15
dtapuska
On 2016/09/13 20:11:32, kenrb wrote: > On 2016/09/13 20:08:49, dtapuska wrote: > > On 2016/09/13 ...
4 years, 3 months ago (2016-09-13 20:12:18 UTC) #16
dtapuska
https://codereview.chromium.org/2339503002/diff/20001/content/browser/renderer_host/render_widget_host_input_event_router.cc File content/browser/renderer_host/render_widget_host_input_event_router.cc (right): https://codereview.chromium.org/2339503002/diff/20001/content/browser/renderer_host/render_widget_host_input_event_router.cc#newcode155 content/browser/renderer_host/render_widget_host_input_event_router.cc:155: if (mouse_capture_target_.target && Should you not be clearing the ...
4 years, 3 months ago (2016-09-13 20:15:15 UTC) #17
kenrb
https://codereview.chromium.org/2339503002/diff/20001/content/browser/renderer_host/render_widget_host_input_event_router.cc File content/browser/renderer_host/render_widget_host_input_event_router.cc (right): https://codereview.chromium.org/2339503002/diff/20001/content/browser/renderer_host/render_widget_host_input_event_router.cc#newcode155 content/browser/renderer_host/render_widget_host_input_event_router.cc:155: if (mouse_capture_target_.target && On 2016/09/13 20:15:14, dtapuska wrote: > ...
4 years, 3 months ago (2016-09-13 20:18:50 UTC) #18
kenrb
On 2016/09/13 20:12:18, dtapuska wrote: > > ok; we have an outstanding issue to allow ...
4 years, 3 months ago (2016-09-13 20:22:11 UTC) #19
dtapuska
On 2016/09/13 20:18:50, kenrb wrote: > https://codereview.chromium.org/2339503002/diff/20001/content/browser/renderer_host/render_widget_host_input_event_router.cc > File content/browser/renderer_host/render_widget_host_input_event_router.cc > (right): > > https://codereview.chromium.org/2339503002/diff/20001/content/browser/renderer_host/render_widget_host_input_event_router.cc#newcode155 ...
4 years, 3 months ago (2016-09-13 20:22:26 UTC) #20
mustaq
lgtm
4 years, 3 months ago (2016-09-13 20:28:03 UTC) #21
kenrb
Nasko, can you give this content owner review?
4 years, 3 months ago (2016-09-14 14:43:35 UTC) #23
Rick Byers
It sounds like this will make OOPIF mouse capturing behavior different than iframe capturing behavior, ...
4 years, 3 months ago (2016-09-14 15:11:17 UTC) #24
kenrb
On 2016/09/14 15:11:17, Rick Byers wrote: > It sounds like this will make OOPIF mouse ...
4 years, 3 months ago (2016-09-14 15:45:04 UTC) #25
Rick Byers
On 2016/09/14 15:45:04, kenrb wrote: > On 2016/09/14 15:11:17, Rick Byers wrote: > > It ...
4 years, 3 months ago (2016-09-14 16:26:46 UTC) #26
nasko
content/ LGTM with couple of nits. https://codereview.chromium.org/2339503002/diff/2/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2339503002/diff/2/content/browser/site_per_process_browsertest.cc#newcode1303 content/browser/site_per_process_browsertest.cc:1303: // cursor crosses ...
4 years, 3 months ago (2016-09-14 16:36:48 UTC) #27
kenrb
On 2016/09/14 16:26:46, Rick Byers wrote: > Oh yeah that can't happen for sure. IIRC ...
4 years, 3 months ago (2016-09-14 17:31:56 UTC) #28
kenrb
https://codereview.chromium.org/2339503002/diff/2/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2339503002/diff/2/content/browser/site_per_process_browsertest.cc#newcode1303 content/browser/site_per_process_browsertest.cc:1303: // cursor crosses over inter-process frame boundaries. On 2016/09/14 ...
4 years, 3 months ago (2016-09-14 20:33:32 UTC) #29
kenrb
Bug filed for the preventDefault problem, https://bugs.chromium.org/p/chromium/issues/detail?id=647378.
4 years, 3 months ago (2016-09-15 19:52:18 UTC) #38
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/2339503002/90001
4 years, 3 months ago (2016-09-15 19:53:12 UTC) #41
Rick Byers
On 2016/09/14 17:31:56, kenrb wrote: > On 2016/09/14 16:26:46, Rick Byers wrote: > > Oh ...
4 years, 3 months ago (2016-09-15 20:00:03 UTC) #42
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years, 3 months ago (2016-09-15 20:00:13 UTC) #43
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/30d21915acf01e3cb5746b1a3cb2e8786c2bd841 Cr-Commit-Position: refs/heads/master@{#418940}
4 years, 3 months ago (2016-09-15 20:01:57 UTC) #45
hshi1
4 years, 3 months ago (2016-09-21 05:48:14 UTC) #47
Message was sent while issue was closed.
Dear authors and reviewers: this CL seems to break the ARC++ opt-in flow (see
b/31591440). Can you please take a look, thanks.

Powered by Google App Engine
This is Rietveld 408576698