-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datatransfer additions, see #120 #128
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a string opinion about the change itself, I believe either @masayuki-nakano or @mbrodesser would want to take a look at that part.
(Gecko doesn't seem to add a File to DataTransfer when I copy a png file to a contenteditable on Windows desktop, which is different from what #120 said. It does add one when DND happens.)
@saschanaz This is a change that was decided upon at the November call. We tested it and found the file in Chrome and Firefox but not in Safari. We add this here to make it behave the same everywhere. |
@saschanaz I just tried again on Ubuntu, and Firefox did show the file. Let's try to make sure we follow the exact same procedure to test this. I did this:
|
With those steps I do get a file object from DataTransfer. Probably a bug that it doesn't work as such for desktop files (while Chrome does give a file.) |
Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
This reverts commit cb6ea10.
@saschanaz It seems like using |
This reverts commit 923f7e1.
Fixed it myself 👍 |
<a data-cite= | ||
"html/dnd.html#the-drag-data-item-kind">kind</a> is | ||
<i>File</i>, and whose data is a <a data-cite="FileAPI#dfn-file">File object</a> | ||
corresponding to the pasted file. [[HTML]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, we don't need [[HTML]]
here when xref
already includes it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, mostly for the syntax.
CC @evilpies, as this might be interesting for you. |
Hey @mbrodesser,
On Thu, Dec 16, 2021 at 11:13 AM mbrodesser ***@***.***> wrote:
@johanneswilm <https://github.com/johanneswilm>: can you please explain
why the "text/uri-list" entry was added in this PR? The explanation in #128
(comment)
<#128 (comment)>
doesn't cover that.
It seems neither Chrome nor Firefox currently support this, at least on
Ubuntu 20.04.
I was basing this on the outcome of the November call [1] . But you're
right, the last few comments there before the action indicate though that
we should possibly make it more platform dependent to match the data
transfer object of the paste event. Not sure how we would word that. I'm
open for suggestions.
[1] https://www.w3.org/2021/11/12-editing-minutes.html#a02
--
Johannes Wilm
|
Preview | Diff