New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 592245 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Clicking on HTML5 video controls does not generate onclick event

Reported by aja...@gmail.com, Mar 6 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Example URL:
https://jsfiddle.net/ajaxgb/26trou4o/4/

Steps to reproduce the problem:
1. Click anywhere on the video except the controls.
2. Note the alerts.
3. Click anywhere on the controls.
4. Note the lack of alerts.

What is the expected behavior?
Clicking on the video controls should generate an onclick event for the video tag.

What went wrong?
No click event was generated.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 48.0.2564.116  Channel: stable
OS Version: 6.3
Flash Version: Shockwave Flash 20.0 r0
 

Comment 1 by aja...@gmail.com, Mar 6 2016

Drat, entered the wrong example URL. This one should work:
https://jsfiddle.net/26trou4o/4/

Comment 2 by kochi@chromium.org, Mar 7 2016

Components: -Blink Blink>Focus
Labels: -OS-Windows OS-All
Owner: kochi@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 3 by kochi@chromium.org, Mar 7 2016

Cc: kochi@chromium.org
Components: -Blink>Focus Blink>WebComponents Blink>Events
Owner: ----
Status: Available (was: Assigned)
Components: -Blink>WebComponents -Blink>Events Blink>Video

Comment 5 by phil...@opera.com, Mar 14 2016

Status: WontFix (was: Available)
This is actually intentional.  Issue 269454  tracked this change, and it was in response to a lot of discussion about the HTML spec. (Disclaimer: I was one of those who wanted this change.) One of the basic problem is that if scripts use the click event handler to play/pause the video, click the native play button will do nothing, as the two cancel each other out. I think there were cases, but I haven't gone back to look, where it wasn't possible to start playing the video using the big overlay play button on Android.

Closing this as WontFix, but if this got in the way of something you were trying to do that's just impossible because of it, please do describe the situation, maybe there are improvements to be made here.

Comment 6 by aja...@gmail.com, Mar 14 2016

Good reasoning. In fact, I realized some time after submitting this report that I would need to implement some hacky workarounds if it was actually fixed.

I guess that all I really want is for the video player to get focus after the controls are clicked on, but that's a separate issue.

Comment 7 by phil...@opera.com, Mar 14 2016

Ah, interesting. Do you mean that you want to see a focus rectangle, or that you want document.activeElement to be the video element? It looks like the video element isn't getting focus at all now. 

Firefox actually does give the video element focus. Can you file a bug describing what you were hoping for?

Comment 8 by aja...@gmail.com, Mar 14 2016

Filed as  Issue 594518 . While I was creating the issue, I also discovered  Issue 594517 .

Comment 9 by sshru...@google.com, Mar 21 2016

Components: -Blink>Video Blink>Media>Video
Renaming Blink>Video to Blink>Media>Video for better characterization

Sign in to add a comment