[Webkit-unassigned] [Bug 174259] New: dataTransfer.getData("text/uri-list") for image on page returns nothing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 7 10:07:32 PDT 2017


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

            Bug ID: 174259
           Summary: dataTransfer.getData("text/uri-list") for image on
                    page returns nothing
           Product: WebKit
           Version: Safari 10
          Hardware: Macintosh
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zarema.khalilova at gmail.com

On one page there is a block and an image (an `img` element). On the block there is an `ondrop` event handler. 

```
function drop(dropevent) {
    dropevent.preventDefault();
    var data = dropevent.dataTransfer.getData("text/uri-list");
    dropevent.target.innerText = data
}
```

In Safari 10.1, if you drag an image into this block, the `dataTransfer.getData("text/uri-list")` method returns nothing. In other browsers and previous version of Safari, this method returns the url of the image.

Demo on codepen: https://codepen.io/zmoki/pen/mwjgLG

-- 
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/20170707/3160eb81/attachment.html>


More information about the webkit-unassigned mailing list