WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
181596
Drag is prevented on video elements without controls attribute
https://bugs.webkit.org/show_bug.cgi?id=181596
Summary
Drag is prevented on video elements without controls attribute
Scott Steele
Reported
2018-01-12 09:56:38 PST
Overview: Video elements without the controls attribute should support drag. Steps to reproduce: 1. Create a webpage with a video element without the controls attribute as a child of a draggable div. 2. Cause the video to be reloaded and played. 3. Select and attempt to drag the video. Actual results: Video element does not drag. dragend is fired immediately. Expected results: Video element is draggable. dragend is fired only after the mouse button is released. Other useful information: In /Source/WebCore/Modules/modern-media-controls/controls/media-controls.js, dragstart is cancelled in handleEvent() as follows: + handleEvent(event) { + if (event.type === "focusin" && event.currentTarget === this.element) + this.faded = false; + else if (event.type === "dragstart" && this.isPointInControls(new DOMPoint(event.clientX, event.clientY))) + event.preventDefault(); } Instead, drag should only be prevented when the controls attribute is present on the media element.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-01-16 04:40:25 PST
<
rdar://problem/36540541
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug