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

Issue 594518 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 827565
Owner: ----
Closed: Dec 3
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Wrong activeElement if a media control is focused

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

Issue description

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

Example URL:
https://jsfiddle.net/ky97q4wb/

Steps to reproduce the problem:
1. Click on the video, press a key, and note that the active element is just the body.
2. Click on the input field, press a key, and note that the active element is the input.
3. Click on the video again and note that the active element is once more the body.

What is the expected behavior?
Clicking on the video (or at least on the video controls) should give it focus, since it takes input.

What went wrong?
Clicking on the video resets focus to the default element.

Did this work before? No 

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? Yes 

Chrome version: 49.0.2623.87  Channel: stable
OS Version: 6.3
Flash Version: Shockwave Flash 21.0 r0

This is related to  Issue 135661  and  Issue 594517 .
 
Components: -Internals>Media Blink>Events
the video is embeded inside <iframe><body></body></iframe>. I checked safari which has the same behavior as chrome. give to layout team to confirm if this is expected behavior.
this issue repro back till chrome 41. so it is not a recent regression.
I do see on IE, the htmlvideoelement is detected as element when click on video while on Chrome and Safari, HTMLBodyElement is detected when click on video.
leave it to Layout team to triage.
Components: Blink>Layout

Comment 4 by e...@chromium.org, May 9 2016

Components: -Blink>Layout Blink>Media>Video

Comment 5 by e...@chromium.org, May 9 2016

 Issue 594517  has been merged into this issue.
Status: Untriaged (was: Unconfirmed)
Components: -Blink>Media>Video Blink>Focus
Blink>Focus to confirm if this is intended.

Comment 8 by kochi@chromium.org, Jul 20 2016

Owner: kochi@chromium.org
Status: Assigned (was: Untriaged)
This seems to be a bug (even when some control (volume slider etc.)) has
focus, document.activeElement seems to return <body>.

Components: Blink>HTML>Focus
Components: -Blink>Focus

Comment 11 by kochi@chromium.org, Oct 17 2017

Cc: kochi@chromium.org
Owner: ----
bulk edit to remove owner=me where I'm not actively looking at.

Comment 12 by kochi@chromium.org, Oct 17 2017

Status: Available (was: Assigned)
mark it available.
Project Member

Comment 13 by sheriffbot@chromium.org, Oct 17

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: Blink>Media>Controls
Labels: -Hotlist-Recharge-Cold
Summary: Wrong activeElement if a media control is focused (was: Video does not get focus on click)
Status: Available (was: Untriaged)
Mergedinto: 827565
Status: Duplicate (was: Available)

Sign in to add a comment