- From: roraja <notifications@github.com>
- Date: Tue, 01 Dec 2026 11:00:16 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/pull/256/review/6137980306@github.com>
@roraja commented on this pull request.
> @@ -1320,6 +1322,18 @@ url: https://storage.spec.whatwg.org/#obtain-a-storage-key-for-non-storage-purpo
1. Let |option| be |clipboardItem|'s [=ClipboardItem/clipboard item=]'s [=presentation style=].
+ 1. If this is the first iteration of the loop over |dataList|, then:
+
+ Issue: This check protects only the first item’s write. An external clipboard write after this check does not abort subsequent item writes.
Could the UA prepare all items first, then perform the change-count check and native write within a short, exclusive clipboard-access window on platforms that support it? For example, Windows [`[OpenClipboard()](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-openclipboard)`](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-openclipboard) prevents other applications from modifying the clipboard until it is closed, though locking and multi-item support are separate platform capabilities.
Any lock should be acquired only after all representation promises have fulfilled and sanitization has completed—not while waiting for webpage-provided data. Could we clarify whether a protected commit could address this limitation on supporting platforms, and what guarantee is achievable elsewhere?
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/256#pullrequestreview-6137980306
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/clipboard-apis/pull/256/review/6137980306@github.com>
Received on Tuesday, 1 December 2026 19:00:21 UTC