Re: [w3c/clipboard-apis] Make async clipboard APIs (read/write) to sanitize interoperably with setData/getData for text/html (#150)

> I think it does affect the well-known formats at least on Safari. Consider the below case: When `text/html` is copied from website X and pasted within the same origin that X belongs to, then Safari returns the content from the pickled html format (no sanitization involved). With your proposal, now Safari will return sanitized fragment when author queries `text/html` from X as the pickled HTML format lives in `"web text/html"`. Basically, your proposal doesn't work on Safari which I'm not sure is an issue because Apple doesn't want to support custom format in cross origin anyway

The way I understood Anne's proposal, if site X wrote "text/html" and then site X reads "text/html", in WebKit, there would be a single item "text/html" that would contain the original unsanitized data upon reading.

If site Y were to read the same data copied from site X, it would contain the sanitized "text/html" data.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/150#issuecomment-1033222954
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/issues/150/1033222954@github.com>

Received on Wednesday, 9 February 2022 01:06:31 UTC