New issue
Advanced search Search tips

Issue 679829 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

It should be possible to drag and drop a <video> element just like an <img> element.

Project Member Reported by sdy@chromium.org, Jan 10 2017

Issue description

Chrome Version: 57.0.2976.0
OS: macOS 10.12.2

What steps will reproduce the problem?
(1) Load a web page with a video element and an image, e.g.:
data:text/html,<video autoplay loop muted src="http://www.w3schools.com/html/mov_bbb.mp4"></video><br><img src="https://media.giphy.com/media/nQ8XtX3ctBCkE/giphy.gif">
(2) Drag the image to an empty spot on the tab bar, or to the desktop.
(3) Try the same thing with the video.

What is the expected result?
- Dragging either one to the tab bar loads it in a new tab.
- Dragging either one to the desktop saves it as a file.

What happens instead?
The image can be dragged, but the video can't be.
 
Labels: -OS-Linux -OS-Windows -Type-Bug -OS-Chrome -OS-Mac OS-All Type-Feature
Status: Available (was: Untriaged)
It seems like by default <img> has the "draggable" property set to true while <video> has the "draggable" property set to false.

See https://chromium.googlesource.com/chromium/src/+/6d8fbe34e1a68d526fda3b736ce006c42c30e21c/third_party/WebKit/Source/core/html/HTMLImageElement.cpp#553

According to the spec an element is draggable only if the draggable attribute is true. Only img, object with img or element with href can be draggable by default (when draggable attribute is missing which is auto).
https://html.spec.whatwg.org/#the-draggable-attribute
So do we need to fix this?

Comment 4 by sdy@chromium.org, Apr 4 2017

Status: WontFix (was: Available)
Sounds like no. I didn't realize that the spec took a stand on this, thanks for catching it.

Sign in to add a comment