Re: [w3c/clipboard-apis] Add Web Custom format (PR #175)

@annevk Chromium and Safari have browser specific custom type that is undocumented and doesn't interop with other apps. The format parsing rules are convoluted since it uses browser specific pickling types for serialization/deserialization. This proposal aims to standardize the web custom formats and the format structure so its well documented and is interop across apps on a platform. This doesn't affect the existing pickling types.

In Firefox, I see that it allows writing custom types in setData, but I don't see any restriction on the number of custom types that can be registered. This is a major security issue on Windows and Linux because of the restriction on the number of clipboard formats that can be registered with the OS. This proposal addresses this issue via a fixed set of web custom formats and a map that maps the mime types to native web custom formats.
![image](https://user-images.githubusercontent.com/45411397/170106570-8ad83988-53de-4631-867d-5d5b600e9415.png)


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

Message ID: <w3c/clipboard-apis/pull/175/c1136298343@github.com>

Received on Tuesday, 24 May 2022 18:30:26 UTC