clipboardData only supports pasting one file
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect, P5)
Tracking
()
People
(Reporter: amla70, Unassigned)
References
(Blocks 3 open bugs)
Details
(Keywords: parity-chrome, parity-safari)
Attachments
(1 file)
|
1.29 KB,
text/html
|
Details |
Comment 1•7 years ago
|
||
Updated•4 years ago
|
Updated•3 years ago
|
Updated•5 months ago
|
Comment 3•3 months ago
|
||
To implement this, I think we should try to align the implementation of the Clipboard with Drag&Drop. Drag&Drop already supports multiple files, which means the DataTransfer code on the DOM-side also supports it. What is missing is 1. Widget support and the glue code in between. I think this code shows one of the main difference in our handling. For DnD we have an index, which we can use to differentiate between different files. The clipboard code on the other hand from the platform-specific widget code to DOM's DataTransfer just differentiates between different items by (MIME) type. Most of that code should probably be unified to have a consistent interface, so that clipboard and DnD work the same.
One thing I haven't looked into, which from my memory often caused issues: How we share the file data or handles from the parent to child. I think historically we had a lot of problems with that, but that might have been solved in the last few years.
Description
•