Re: [w3c/editing] clarifications for the pickling design proposal (Issue #393)

> So there's no clipboard history essentially? And each write overwrites so you can't really observe timing differences? Seems like that would work, in principle.

The only potentially detectable timing difference I can think of would be the maximum number Web Custom Formats ever simultaneously written to the clipboard.  That assumes that a browser would call `RegisterClipboardFormat` (on Windows) for the number of slots needed to store an author's custom mime-types and not just reserve all 100 slots at once.  It also assumes that the first call to register "Web Custom FormatN" takes a detectable different amount of time than subsequent calls.  If that turns out to be a problem the browser can just reserve all slots at once.

> doesn't this give a possibility for one site in an open tab to destroy the experience made in another open tab because the registrations would be removed or dropped?

No. At least on Windows, registrations are only additive and non-destructive.  Also keep in mind the author isn't registering new formats, the browser is, and the formats always have the same names "Web Custom FormatN".

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

Message ID: <w3c/editing/issues/393/1067108135@github.com>

Received on Monday, 14 March 2022 17:42:56 UTC