Bug 28381

Summary: Can't setDragImage when dragging an image element
Product: WebKit Reporter: Francisco Tolmasky <tolmasky>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: ahmad.saleem792, akeerthi, dtrebbien, matiasnu, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Drag image, you won't get red div, add draggable=true, then you will. none

Francisco Tolmasky
Reported 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.
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
Daniel Trebbien
Comment 1 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.
Ahmad Saleem
Comment 3 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.
Note You need to log in before you can comment on or make changes to this bug.