Bug 42874 - DragEvent.dataTransfer.setData and/or DragEvent.dataTransfer.getData fail
Summary: DragEvent.dataTransfer.setData and/or DragEvent.dataTransfer.getData fail
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL: http://decafbad.com/2009/07/drag-and-...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-23 00:09 PDT by Jason
Modified: 2019-06-09 09:20 PDT (History)
4 users (show)

See Also:


Attachments
Simple test case of bug. Drag the image. The dialog that pops up should say 1 = 1. It currently says 1 = undefined. (41 bytes, text/plain)
2010-07-23 00:09 PDT, Jason
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason 2010-07-23 00:09:09 PDT
Created attachment 62383 [details]
Simple test case of bug.  Drag the image.  The dialog that pops up should say 1 = 1.  It currently says 1 = undefined.

The DragEvent.dataTransfer.getData(format) returns undefined when DragEvent.dataTransfer.setData(format, data) was used immediately preceding.  See http://decafbad.com/2009/07/drag-and-drop/api-demos.html#data_transfer for an example of this failing.  Alternatively, the attached file calls DragEvent.dataTransfer.setData('text/plain', '1'), and then alerts DragEvent.dataTransfer.getData('text/plain').  Currently, it alerts that it it undefined.
Comment 1 Daniel Trebbien 2013-07-22 14:02:50 PDT
I think that this is a duplicate of https://bugs.webkit.org/show_bug.cgi?id=23695

Using the latest nightly, r152754 built on 17 July 2013, I am seeing 1 = 1.