[w3c/clipboard-apis] [Security Proposal] Allow ClipboardItem to accept a BufferSource such as Uint8Array to harmonize with memory sanitizations (Issue #251)

kwpartist created an issue (w3c/clipboard-apis#251)

**[CURRENTLY]**

Blobs are explicitly the only option currently. They are immutable so you can't call a .fill() or change the bytes via crypto.getRandomValues().

**[PROPOSAL]**

Extend accepted types for ClipboardItem to natively include BufferSource objects. That way for instance, an Uint8Array buffer can be referenced zero-copy style behind the scenes, and then at the web application level be scrubbed/sanitized immediately after.

With potentially _**concealed-enabled writes**_ coming, it would be a wonderful pairing for short-lived copy/paste/clear type patterns.

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

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

Received on Saturday, 11 July 2026 02:50:23 UTC