I came to notice that for some reason it is not possible to transfer data from chrome to firefox or viceversa through a draggable object when the mime is set to application/json
.
See demo here: http://jsfiddle.net/n7N9p/4/
(Open that link in both, chrome and firefox and try dragging the JSON draggable from one browser to the other).
With that I have tested dragging the draggable in different scenarios:
Why does (only) 10 and 12 fail?
Is this a bug or security feature? If it is a security feature, then why is it insecure? How come 3, 4, 7 and 8 are not considered insecure? Why does it always work with the mime set to text
?
Why does (only) 10 and 12 fail?
application/json
can be serialized to text if the browser knows the source
How come 3, 4, 7 and 8 are not considered insecure?
The data is transferred from client to client, not client to server
Why does it always work with the mime set to text?
The setData
method of the dataTransfer
object accepts text and dataURLs
References
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.