Bug 30527 - [Win] event.dataTransfer.types is NULL but should be the list formats set in the dragstart event
Summary: [Win] event.dataTransfer.types is NULL but should be the list formats set in ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 33738 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-19 12:31 PDT by Daniel Bates
Modified: 2010-01-18 09:20 PST (History)
3 users (show)

See Also:


Attachments
Example (9.47 KB, text/html)
2009-10-19 12:31 PDT, Daniel Bates
no flags Details
Patch (5.74 KB, patch)
2010-01-18 08:57 PST, Daniel Cheng
aroben: review+
aroben: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2009-10-19 12:31:21 PDT
Following up from my comment on bug #30266.

On Windows, event.dataTransfer.types is NULL on a successful drop despite any formats set in the dragstart event.

According to section 7.9.2 of the HTML 5 spec (http://dev.w3.org/html5/spec/Overview.html#the-dragevent-and-datatransfer-interfaces), it should be the list of the formats that were set in the dragstart event.
Comment 1 Daniel Bates 2009-10-19 12:31:43 PDT
Created attachment 41438 [details]
Example
Comment 2 Sandro Mani 2009-12-13 16:11:27 PST
Actually it seems to work if the registered content type is text/plain, but seems to fail for other basic ones (text/html) for example.
Comment 3 Adam Roben (:aroben) 2010-01-18 06:21:38 PST
*** Bug 33738 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Cheng 2010-01-18 08:57:57 PST
Created attachment 46826 [details]
Patch
Comment 5 Adam Roben (:aroben) 2010-01-18 09:03:37 PST
Comment on attachment 46826 [details]
Patch

There are a couple of conflict markers in your ChangeLogs. I'll take care of them before landing. Thanks!
Comment 6 Adam Roben (:aroben) 2010-01-18 09:20:40 PST
Committed r53410: <http://trac.webkit.org/changeset/53410>