Open Bug 1124775 Opened 9 years ago Updated 3 years ago

Drag and Drop dataTransfer.types contains Files when there are none

Categories

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

32 Branch
x86
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: james.gorrie, Unassigned)

References

()

Details

(Keywords: html5, testcase)

Attachments

(1 file)

Attached image dndbroken.gif
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:32.0) Gecko/20100101 Firefox/32.0
Build ID: 20140923175406

Steps to reproduce:

Drag an image from the same or another Firefox tab onto a dropzone.

See here for more details:
http://jsfiddle.net/xseFs/46/

Drag an image from your file system (Finder, Nautilus etc) over the test are, if it contains files, you will see it change to true, and ondrop, you will see the file list.

Drag an image from another tab (Google images et al) and it will say it contains files, but when you drop there is nothing there.


Actual results:

The event.dataTransfer.types contains the value "Files".
When dropping there are no files in event.dataTransfer.files.


Expected results:

"Files" should not be in the event.dataTransfer.types when dragging an image over from another page / tab.
Keywords: html5
Ubuntu 14.10
Firefox 36.0.1
I see this occuring in multiple scenarios
- dragging plain text from gedit
- dragging links from other browser window
- dragging image from other browser window

In these cases dataTransfer.types include 'Files' when it should not.
Thanks for the report! This is the same issue as bug 603062, right?
Keywords: testcase
Component: Untriaged → Drag and Drop
Product: Firefox → Core
Yip - same bug - it might be worth keeping the example though.
I tested this on Mac or Linux and don't see this bug.

Bulk-downgrade of unassigned, 4 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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: