Open
Bug 1032246
Opened 10 years ago
Updated 2 years ago
Media elements should not trigger events for control interactions
Categories
(Toolkit :: Video/Audio Controls, defect)
Tracking
()
NEW
People
(Reporter: chris, Unassigned)
References
Details
(Keywords: parity-chrome)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 Steps to reproduce: 1. Open http://www.quirksmode.org/html5/tests/video.html 2. Run the following JavaScript in the console: Array.prototype.forEach.call(document.querySelectorAll('video'), function (i) { i.parentNode.addEventListener('mousedown', function (evt) { console.log(evt.type) }); i.parentNode.addEventListener('mouseup', function (evt) { console.log(evt.type) }); i.parentNode.addEventListener('click', function (evt) { console.log(evt.type) }); }) 3. Click on the play/pause button on a <video> element with native controls Actual results: The mousedown, mouseup and click events are triggered on the video element and the event data does not include a way to distinguish between a click on the video itself or a control interaction Expected results: According to the HTML specification, native controls on the media element should not trigger normal mouse events: “If the user agent exposes a user interface to the user by displaying controls over the media element, then the user agent should suppress any user interaction events while the user agent is interacting with this interface. (For example, if the user clicks on a video's playback control, mousedown events and so forth would not simultaneously be fired at elements on the page.)” http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#attr-media-controls
Comment 1•10 years ago
|
||
Related: bug 582537?
Component: Untriaged → Video/Audio Controls
Product: Firefox → Toolkit
Updated•10 years ago
|
QA Whiteboard: [DUPEME?]
Component: Video/Audio Controls → Video/Audio
Product: Toolkit → Core
Reporter | ||
Comment 2•10 years ago
|
||
This was recently fixed in Chrome: https://code.google.com/p/chromium/issues/detail?id=269454
Updated•9 years ago
|
Status: UNCONFIRMED → NEW
QA Whiteboard: [DUPEME?]
Component: Video/Audio → Video/Audio Controls
Ever confirmed: true
Flags: qe-verify-
Flags: in-testsuite?
Flags: firefox-backlog+
OS: Mac OS X → All
Product: Core → Toolkit
Hardware: x86 → All
Whiteboard: [parity-Chrome]
Another apparent consequence of this bug is that when a video element is inside a link, the controls on the video can't be readily operated without navigating to the linked page. For example http://regex.info/exif.cgi?imgurl=https://a.pomf.cat/tyyvie.webm This can be very annoying.
Comment 7•6 years ago
|
||
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Keywords: parity-chrome
Whiteboard: [parity-Chrome]
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•