Bug 222105

Summary: Setting the dragImage to an SVG image causes webkit to automatically abort the drag event
Product: WebKit Reporter: sergen_nurel
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: adrian, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac (Intel)   
OS: macOS 10.15   

sergen_nurel
Reported 2021-02-18 06:55:22 PST
During the dragstart event, setting the dragImage to an SVG image causes webkit to automatically abort the drag event. To reproduce: <div id="thing" draggable="true">DRAG ME</div> function onDragStart(event){ var testfile = document.createElement("img"); testfile.src = "https://assets.codepen.io/3/kiwi.svg"; event.dataTransfer.setDragImage(testfile, 5, 9); } var theThing = document.getElementById('thing'); theThing.addEventListener('dragstart', onDragStart, false);
Attachments
Radar WebKit Bug Importer
Comment 1 2021-02-25 06:56:12 PST
Note You need to log in before you can comment on or make changes to this bug.