WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 170637
174259
dataTransfer.getData("text/uri-list") for image on page returns nothing
https://bugs.webkit.org/show_bug.cgi?id=174259
Summary
dataTransfer.getData("text/uri-list") for image on page returns nothing
Zarema
Reported
2017-07-07 10:07:32 PDT
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
Attachments
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2017-07-07 17:10:08 PDT
We have this internally as <
rdar://problem/31347248
> Does this affect any websites that you know of?
Brady Eidson
Comment 2
2017-07-07 17:12:10 PDT
*** This bug has been marked as a duplicate of
bug 170637
***
Zarema
Comment 3
2017-07-10 03:05:33 PDT
Yes, this affects Uploadcare Widget (file picker,
https://uploadcare.com/documentation/widget/
). You can see it on the pages
https://uploadcare.com/
and
https://uploadcare.com/quick_start/
. On these pages there is demo where you need to drag image onto the button.
Brady Eidson
Comment 4
2017-07-10 07:07:41 PDT
(In reply to Zarema from
comment #3
)
> Yes, this affects Uploadcare Widget (file picker, >
https://uploadcare.com/documentation/widget/
). You can see it on the pages >
https://uploadcare.com/
and
https://uploadcare.com/quick_start/
. On these > pages there is demo where you need to drag image onto the button.
I meant deployed sites in practice, but please feel free to keep commenting in the original bug (170637)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug