- From: snianu <notifications@github.com>
- Date: Tue, 22 Feb 2022 09:55:43 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 22 February 2022 17:55:55 UTC
> So in shipping Safari, our DataTransfer APIs don't allow for cross-origin transfer of custom data types This is currently supported by both Chrome and Firefox. e.g. For copying a custom type, open this page: https://jsfiddle.net/uLz7s4h3/. Select some text in "Some Text" and press Ctrl + C. Result: Chrome creates "Chromium Web Custom MIME Data Format" on Windows Firefox creates "application/x-moz-custom-clipdata" on Windows For Paste open this page: https://sphenoid-hurricane-hovercraft.glitch.me/ click in "Some Text" and press Ctrl + V. Result: The text "This text was copied using DT APIs" will be inserted into the Div element. Both Chrome and Firefox support copying and pasting content from custom types(and unsanitized HTML content) across origins using the DataTransfer APIs. This is why we want to align async APIs with the DataTransfer APIs. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/165#issuecomment-1048061964 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/issues/165/1048061964@github.com>
Received on Tuesday, 22 February 2022 17:55:55 UTC