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 Events | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/74742704>