Closed Bug 669004 Opened 13 years ago Closed 2 years ago

dataTransfer.getData() doesn't properly alias "text" and "url"

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect, P5)

defect

Tracking

()

RESOLVED DUPLICATE of bug 662173

People

(Reporter: webkit, Unassigned)

References

Details

(Keywords: html5)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build ID: 20110413222027

Steps to reproduce:

Trying to use dataTransfer.getData() in a cross-browser way.


Actual results:

When dragging a link onto a drop target, calling event.dataTransfer.getData("url") returned an empty string. event.dataTransfer.getData("text/uri-list") and event.dataTransfer.getData("text/plain") both work.


Expected results:

In IE, Chrome, and Safari, calling event.dataTransfer.getData("url") returns the URL, I expected the same. "url" should be aliased to "text/uri-list" and "text" should be aliased to "text/plain". N
Component: General → Drag and Drop
Keywords: html5
OS: Other → All
Product: Firefox → Core
QA Contact: general → drag-drop
Version: 5 Branch → Trunk
This is likely caused by bug 662173, as an older spec assumed uppercase for the 'URL' type.
Depends on: 662173

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5

I think bug 662173 also fix this, and I could not reproduce anymore.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.