Bug 28381 - Can't setDragImage when dragging an image element
Summary: Can't setDragImage when dragging an image element
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-16 23:28 PDT by Francisco Tolmasky
Modified: 2023-04-11 21:26 PDT (History)
5 users (show)

See Also:


Attachments
Drag image, you won't get red div, add draggable=true, then you will. (425 bytes, text/plain)
2009-08-16 23:28 PDT, Francisco Tolmasky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Tolmasky 2009-08-16 23:28:46 PDT
Created attachment 34955 [details]
Drag image, you won't get red div, add draggable=true, then you will.

When dragging an image element specifically, setDragImage is ignored unless draggable="true" is set explicitly on the element. Every other element allows it as long as a parent has draggable set. FireFox also allows it.
Comment 1 Daniel Trebbien 2013-07-24 11:53:13 PDT
This issue was recently fixed in Chrome:
http://code.google.com/p/chromium/issues/detail?id=259078

I am seeing this issue in WebKit nightly r153084 built on 24 July 2013.
Comment 3 Ahmad Saleem 2023-04-11 21:26:08 PDT
Using attached test case - into JSFiddle (with DOCTYPE) - https://jsfiddle.net/9ta5w4ok/show

In WebKit ToT (262855@main), I can only drag "Google Image" once after that it does not let me drag it (focus getting stuck), while moving red rect is no issue at all.

Chrome Canary 114 works fine and you can drag both 'rect' and 'Google' image as much as you want. In case of Firefox Nightly 114, when you drag 'Google' image, you get 'red' div and not 'Google' image.

I think it should be 'UI Event' bug rather than 'DOM'. Tagging 'Aditya' for any input.