|
6.94 KB,
patch
|
markh
:
review+
|
Details | Diff | Splinter Review |
|
1.68 KB,
text/plain
|
Details | |
|
7.51 KB,
patch
|
blizzard
:
superreview+
|
Details | Diff | Splinter Review |
At the moment, it is not possible to drop multiple files from a file manager such as nautilus on mozilla. The de-facto standard for multi-file drops is to use the text/uri-list target. It is not possible to handle these drops from the javascript layer because the data format for text/uri-list drops is ascii, rather than 2 byte unicode, so the data gets misinterpreted. Attached is a patch that adds support for text/uri-list, by treating it like a drop of multiple text/x-moz-url flavour items. This should make text/uri-list drops usable to javascript DND Observers, while not needing special knowledge of the conventions used on X11 dnd.
| (Reporter) | ||
Comment 1•16 years ago
|
||
Created attachment 55829 [details] [diff] [review] Convert text/uri-list drops to a multi-file text/x-moz-url drop
| (Reporter) | ||
Comment 2•16 years ago
|
||
Created attachment 55832 [details]
Simple XUL example to test text/uri-list drops
Updated•16 years ago
|
||
Comment 3•16 years ago
|
||
Comment on attachment 55829 [details] [diff] [review] Convert text/uri-list drops to a multi-file text/x-moz-url drop r=markh
Comment 4•16 years ago
|
||
blizzard, can you sr= and maybe check this in? /be
| (Assignee) | ||
Comment 5•16 years ago
|
||
The code looks fine. Can you pull the two parser loops into seperate functions to make it more readable and maintainable, please?
| (Reporter) | ||
Comment 6•16 years ago
|
||
Created attachment 56000 [details] [diff] [review] second attempt, with text/uri-list parsing code split into helper functions
| (Assignee) | ||
Comment 7•16 years ago
|
||
Comment on attachment 56000 [details] [diff] [review] second attempt, with text/uri-list parsing code split into helper functions sr=blizzard
| (Assignee) | ||
Comment 8•16 years ago
|
||
Checked in on behalf of James.
Description
•