[Webkit-unassigned] [Bug 222105] New: Setting the dragImage to an SVG image causes webkit to automatically abort the drag event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 18 06:55:22 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=222105

            Bug ID: 222105
           Summary: Setting the dragImage to an SVG image causes webkit to
                    automatically abort the drag event
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Intel)
                OS: macOS 10.15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: UI Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sergen_nurel at hotmail.com

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);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210218/782b16bf/attachment-0001.htm>


More information about the webkit-unassigned mailing list