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

Issue 406213002: If the media controls are visible they should always grab clicks (Closed)

Created:
6 years, 5 months ago by aberent
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

If the media controls are visible they should always grab clicks Once we have decided to show the media controls it makes no sense to allow the page to change their handling. This CL ensures that, if the media controls are shown, then clicks on them actually get to them. BUG=388738 BUG=269454 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179397

Patch Set 1 #

Patch Set 2 : Add missing comment #

Total comments: 4

Patch Set 3 : Rewrite, based on philipj@ suggestion to move this to EventPath #

Patch Set 4 : Move nodes on which check is done, and add event filters - tests still needed #

Patch Set 5 : Test added - now looking for LGTM or detailed comments. #

Total comments: 21

Patch Set 6 : Fix review comments #

Patch Set 7 : Fix layout test - was hitting overlay play button. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -3 lines) Patch
A LayoutTests/media/video-controls-mouse-events-captured.html View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A LayoutTests/media/video-controls-mouse-events-captured-expected.txt View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/media/video-controls-touch-events-captured.html View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
A LayoutTests/media/video-controls-touch-events-captured-expected.txt View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/platform/linux/virtual/android/fullscreen/video-scrolled-iframe-expected.png View 1 2 3 4 5 6 Binary file 0 comments Download
M LayoutTests/virtual/android/fullscreen/video-scrolled-iframe.html View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/events/EventPath.cpp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/events/EventTarget.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.h View 1 2 3 4 5 4 chunks +4 lines, -0 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 4 5 5 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
aberent
This seems a simple fix to this bug, but I don't know enough about the ...
6 years, 5 months ago (2014-07-22 10:33:03 UTC) #1
philipj_slow
+acolwell +self
6 years, 5 months ago (2014-07-22 11:03:12 UTC) #2
philipj_slow
Excellent, this really needs fixing. I've tried to fix issue 269454 a couple of times, ...
6 years, 5 months ago (2014-07-22 12:56:24 UTC) #3
aberent
Patch set 3 is a complete rewrite, based on philipj@'s suggestion that we should do ...
6 years, 5 months ago (2014-07-23 13:03:04 UTC) #4
philipj_slow
+hayato, who has a lot of recent pathes involving event path.
6 years, 5 months ago (2014-07-23 13:19:46 UTC) #5
philipj_slow
PS3 looks promising, it now works for the time and volume sliders as well. There ...
6 years, 5 months ago (2014-07-23 13:48:45 UTC) #6
aberent
On 2014/07/23 13:48:45, philipj wrote: > PS3 looks promising, it now works for the time ...
6 years, 5 months ago (2014-07-23 13:58:55 UTC) #7
philipj_slow
On 2014/07/23 13:58:55, aberent wrote: > On 2014/07/23 13:48:45, philipj wrote: > > PS3 looks ...
6 years, 5 months ago (2014-07-23 14:33:01 UTC) #8
hayato
Sorry for the late review. The patch looks too hacky to me. I am not ...
6 years, 4 months ago (2014-07-29 10:54:16 UTC) #9
aberent
On 2014/07/29 10:54:16, hayato wrote: > Sorry for the late review. > > The patch ...
6 years, 4 months ago (2014-07-29 11:14:21 UTC) #10
philipj_slow
I've built and tested this, the behavior looks correct to me now. With a few ...
6 years, 4 months ago (2014-07-29 11:31:07 UTC) #11
philipj_slow
Oh right, there's no testing for the keyboard and touch event bits.
6 years, 4 months ago (2014-07-29 11:32:18 UTC) #12
aberent
On 2014/07/29 11:14:21, aberent wrote: > On 2014/07/29 10:54:16, hayato wrote: > > Sorry for ...
6 years, 4 months ago (2014-07-29 12:12:46 UTC) #13
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/406213002/diff/80001/LayoutTests/media/video-controls-mouse-events-captured.html File LayoutTests/media/video-controls-mouse-events-captured.html (right): https://codereview.chromium.org/406213002/diff/80001/LayoutTests/media/video-controls-mouse-events-captured.html#newcode17 LayoutTests/media/video-controls-mouse-events-captured.html:17: video.addEventListener("click", badEventHandler); nit: Use waitForEventAndFail() from video-test.js here and ...
6 years, 4 months ago (2014-07-29 16:23:26 UTC) #14
hayato
On 2014/07/29 11:14:21, aberent wrote: > “If the user agent exposes a user interface to ...
6 years, 4 months ago (2014-07-30 03:18:39 UTC) #15
hayato
https://codereview.chromium.org/406213002/diff/80001/Source/core/events/EventPath.cpp File Source/core/events/EventPath.cpp (right): https://codereview.chromium.org/406213002/diff/80001/Source/core/events/EventPath.cpp#newcode129 Source/core/events/EventPath.cpp:129: if (m_event && determineDispatchBehavior(m_event, current, m_node) == StayInsideShadowDOM) After ...
6 years, 4 months ago (2014-07-30 03:19:11 UTC) #16
hayato
> In the current approach, the parent element of MediaControlElement will be also > excluded ...
6 years, 4 months ago (2014-07-30 04:38:11 UTC) #17
aberent
On 2014/07/30 04:38:11, hayato wrote: > > In the current approach, the parent element of ...
6 years, 4 months ago (2014-07-30 08:59:10 UTC) #18
hayato
On 2014/07/30 08:59:10, aberent wrote: > Unfortunately no. The MediaControlElements themselves have complex structures. > ...
6 years, 4 months ago (2014-07-30 09:23:57 UTC) #19
aberent
On 2014/07/30 09:23:57, hayato wrote: > On 2014/07/30 08:59:10, aberent wrote: > > Unfortunately no. ...
6 years, 4 months ago (2014-07-30 11:08:05 UTC) #20
aberent
PTAL - new version uploaded https://codereview.chromium.org/406213002/diff/80001/LayoutTests/media/video-controls-mouse-events-captured.html File LayoutTests/media/video-controls-mouse-events-captured.html (right): https://codereview.chromium.org/406213002/diff/80001/LayoutTests/media/video-controls-mouse-events-captured.html#newcode13 LayoutTests/media/video-controls-mouse-events-captured.html:13: var badEventHandler = function(event) ...
6 years, 4 months ago (2014-07-31 10:52:47 UTC) #21
philipj_slow
https://codereview.chromium.org/406213002/diff/80001/LayoutTests/media/video-controls-mouse-events-captured.html File LayoutTests/media/video-controls-mouse-events-captured.html (right): https://codereview.chromium.org/406213002/diff/80001/LayoutTests/media/video-controls-mouse-events-captured.html#newcode49 LayoutTests/media/video-controls-mouse-events-captured.html:49: // Check that the timeline also captures mousemove On ...
6 years, 4 months ago (2014-07-31 11:16:06 UTC) #22
philipj_slow
This LGTM now. Thanks for fixing this!
6 years, 4 months ago (2014-07-31 11:26:51 UTC) #23
aberent
On 2014/07/31 11:26:51, philipj wrote: > This LGTM now. Thanks for fixing this! hayato@, are ...
6 years, 4 months ago (2014-07-31 16:18:39 UTC) #24
hayato
I'm happy with this. :) LGTM.
6 years, 4 months ago (2014-08-01 04:15:54 UTC) #25
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 4 months ago (2014-08-01 08:28:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/406213002/100001
6 years, 4 months ago (2014-08-01 08:29:15 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-01 09:40:07 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 10:07:29 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/18622)
6 years, 4 months ago (2014-08-01 10:07:30 UTC) #30
aberent
On 2014/08/01 10:07:30, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-01 10:40:45 UTC) #31
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 4 months ago (2014-08-01 10:41:17 UTC) #32
aberent
The CQ bit was unchecked by aberent@chromium.org
6 years, 4 months ago (2014-08-01 10:41:20 UTC) #33
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 4 months ago (2014-08-01 10:42:47 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/406213002/120001
6 years, 4 months ago (2014-08-01 10:43:18 UTC) #35
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-01 11:53:29 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 13:00:03 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/19053)
6 years, 4 months ago (2014-08-01 13:00:04 UTC) #38
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 4 months ago (2014-08-01 13:01:18 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/406213002/120001
6 years, 4 months ago (2014-08-01 13:02:21 UTC) #40
commit-bot: I haz the power
6 years, 4 months ago (2014-08-01 14:13:29 UTC) #41
Message was sent while issue was closed.
Change committed as 179397

Powered by Google App Engine
This is Rietveld 408576698