Closed Bug 1278946 Opened 8 years ago Closed 8 years ago

Image data exists in dataTransfer when no image is present

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox47 --- unaffected
firefox48 --- unaffected
firefox49 --- unaffected
firefox50 --- affected

People

(Reporter: enndeakin, Unassigned)

References

Details

(Keywords: regression, Whiteboard: btpp-followup-2016-06-15)

Attachments

(1 file)

Attached file Testcase
1. Open the attachment.
2. Select a text file from your filesystem (Finder) and copy it to the clipboard
3. Click on the blue paste box in the testcase
4. Paste there

Actual:
 - the test dumps out the contents of dataTransfer. The data includes image types, yet no image is present.

Expected:
 - just the file data should be present

Reproducable on Mac as least.
The data also includes all three image types (gif, png, jpeg) regardless of what type of image, if any, is actually provided by the clipboard.
Michael, can you please take a look?
Flags: needinfo?(michael)
Whiteboard: btpp-followup-2016-06-15
The additional formats are present intentionally. The image data is transcoded to each of the different types for the application's convenience. If we want to only provide a single type (say PNG), that is a different matter.

With regard to copying files from finder to the clipboard, we currently don't support copying files. The images you are seeing on OSX are actually the icons for the file. Chrome also provides the PNG version of these icons to the website as well, so we should be web-compatible with this behavior (although it is unfortunate).
Flags: needinfo?(michael)
Closing as wontfix for now.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: