Summary: | Can't setDragImage when dragging an image element | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Francisco Tolmasky <tolmasky> | ||||
Component: | DOM | Assignee: | 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: |
|
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. Fixed in this commit - https://src.chromium.org/viewvc/blink?view=revision&revision=154032 We still have this code - https://searchfox.org/wubkat/source/Source/WebCore/page/DragController.cpp#1033 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. |
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.