support proposed DownloadURL format string on DataTransfer object
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, enhancement)
Tracking
()
People
(Reporter: alessandro.vescovi, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: parity-chrome)
Attachments
(1 file)
|
1.83 KB,
text/html
|
Details |
Comment 1•15 years ago
|
||
Updated•15 years ago
|
Comment 3•15 years ago
|
||
Comment 6•15 years ago
|
||
Comment 8•15 years ago
|
||
Comment 9•15 years ago
|
||
Updated•15 years ago
|
Comment 10•15 years ago
|
||
Comment 11•15 years ago
|
||
Comment 12•14 years ago
|
||
Comment 14•13 years ago
|
||
Comment 16•4 years ago
|
||
Bulk-downgrade of unassigned, untouched DOM/Storage bug's priority.
If you have reason to believe, this is wrong, please write a comment and ni :jstutte.
This affects macOS too. The example given in #c14, drag-and-dropping from Gmail to the file manager, doesn't work with Firefox. Works with Chrome.
On Ubuntu, it doesn't work with Chrome either.
Safari doesn't support this.
Chrome seems to block cross-origin downloads (which makes sense).
When this is implemented in Gecko, perhaps a test from Chromium can be lifted to a WPT.
Comment 20•4 years ago
|
||
Mirko asked me out of band, if there are security concerns. I'm not too worried about the functionality in itself, but of course we'll need a sound implementation to handle e.g., the cross-origin cases correctly..
For the record, some insights from a discussion with :jgraham, about writing automatic tests for this issue:
- Writing a WPT which drops to the OS is currently not supported. A long time ago, something similar was written for Opera and the code was apparently "a nightmare".
- Perhaps a test for D&D within the browser can be written as a Mochitest.
- Presumably, such a Mochitest could be transformed to a mozilla specific WPT. And perhaps later be lifted to a WPT.
- Directly writing a mozilla-specific WPT using
SpecialPowersis not possible, because some D&D test-code is Mochitest-specific (synthesizePlainDragAndDrop,promiseNativeMouseDrag).
Updated•3 years ago
|
Comment 22•4 months ago
|
||
This testcase lets you upload files into the browser by dragging from the desktop into it, and download from it to the desktop by dragging out of it.
It uses
link.addEventListener('dragstart', ev => {
ev.dataTransfer.setData('DownloadURL', `application/octet-stream:${file.name}:${url}`);
});
Using a textfile, this works in Edge, but not in Firefox.
Description
•