[Webkit-unassigned] [Bug 181596] New: Drag is prevented on video elements without controls attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 12 09:56:38 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=181596

            Bug ID: 181596
           Summary: Drag is prevented on video elements without controls
                    attribute
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Macintosh
                OS: macOS 10.13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: scott at jadestream.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180112/462057c7/attachment-0001.html>


More information about the webkit-unassigned mailing list