Open Bug 1124775 Opened 6 years ago Updated 4 years ago

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


(Core :: DOM: Drag & Drop, defect)

32 Branch
Not set





(Reporter: james.gorrie, Unassigned)




(Keywords: html5, testcase)


(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:

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.
Duplicate of this bug: 603062
I tested this on Mac or Linux and don't see this bug.
You need to log in before you can comment on or make changes to this bug.