[Webkit-unassigned] [Bug 177633] [GTK] Move to new Pasteboard API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 24 07:58:25 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=177633

--- Comment #8 from Wenson Hsieh <wenson_hsieh at apple.com> ---
(In reply to Carlos Garcia Campos from comment #6)
> hmm, I'm now reading https://www.w3.org/TR/clipboard-apis/ is that spec what
> the new API implements?

The custom pasteboard data codepath primarily ensures that the page is able to supply arbitrary data types using the clipboard APIs (e.g., dataTransfer.setData('myCustomType', 'myCustomData')) without directly affecting the contents of the real platform pasteboard. 

To do this, we package all the custom pasteboard types and data supplied by web content (as well as some metadata, such as the document origin) into a separate blob of data that we refer to as "custom pasteboard data". On Cocoa platforms, this is written as a separate UTI on the platform pasteboard: "com.apple.WebKit.custom-pasteboard-data".

Additionally, by including the origin of the page in the custom pasteboard data, we're able to enforce stricter checks on what data we expose cross-origin through clipboard APIs. For instance, r223195 uses the custom pasteboard data mechanism to sanitize URLs cross-origin, but maintain original data when dropping/pasting in a page of the same origin.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171024/73151201/attachment.html>


More information about the webkit-unassigned mailing list