Re: [w3c/clipboard-apis] Add comprehensive clipboardchange event specification with ClipboardChangeEventInit dictionary (PR #239)

@roraja commented on this pull request.



> @@ -224,12 +224,86 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
    * Scripts that use the [[#async-clipboard-api]] to write to the clipboard
    * Actions that update the clipboard outside the user agent
 
-   If the clipboard contents are changed outside the user agent, then the
-   {{GlobalEventHandlers/clipboardchange}} event MUST fire when the user agent regains focus.
+   If the clipboard contents are changed while the document is not in focus, a single
+   {{GlobalEventHandlers/clipboardchange}} event MUST fire when the document regains focus,
+   even if the clipboard changed multiple times.
+   No event fires when the clipboard changes while the document is out of focus, which helps prevent malicious applications from monitoring the clipboard in the background.

Fixed, thanks.

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

Message ID: <w3c/clipboard-apis/pull/239/review/3134793498@github.com>

Received on Wednesday, 20 August 2025 05:06:50 UTC