mozilla / standards-positions

https://mozilla.github.io/standards-positions/
Mozilla Public License 2.0
633 stars 69 forks source link

Clipboard API SVG support #549

Open dway123 opened 3 years ago

dway123 commented 3 years ago

Request for Mozilla Position on an Emerging Web Specification

Other information

annevk commented 3 years ago

Now that https://wicg.github.io/sanitizer-api/ is further along, sanitization might no longer be that hard to actually define?

cc @evilpie @mozfreddyb

annevk commented 2 years ago

@dway123 also, where are the details defined for navigator.clipboard.write()? Would you allow any arbitrary byte sequence to be tagged as image/svg+xml or does it have to conform to some set of rules?

dway123 commented 2 years ago

I think the current Chromium implementation allows for any arbitrary byte sequence to be tagged as image/svg+xml (like with HTML/image/text implementations), but then sanitizes the content as if it's SVG. This seems consistent with the navigator.clipboard.write() spec, which doesn't require item to conform to some set of rules.

@mkruisselbrink for more comment, as I'm no longer active on Chromium now. (Thanks for all the collaboration and questions on clipboard, @annevk)