Bug 142843 - clipboardData.setData('text/uri-list', ...) clears existing data.
Summary: clipboardData.setData('text/uri-list', ...) clears existing data.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: Unspecified OS X 10.10
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 14:55 PDT by Saif Hakim
Modified: 2015-03-18 22:22 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Saif Hakim 2015-03-18 14:55:22 PDT
I have observed that calling clipboardData.setData('text/uri-list', ...) after any other calls to clipboardData.setData() will result in a loss of data from the previous calls.

Repro: http://jsfiddle.net/ufwcv0nw/
1. Drag the top div and drop it anywhere. It specifies the data in an order with text/uri-lis first so nothing is over-written.
2. Drag the bottom div and drop it anywhere. It specifies the data in an order with text/uri-list last so everything is over-written.