- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 14 Aug 2025 08:30:09 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 14 August 2025 15:30:13 UTC
@annevk 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. I think it would be good if we had an actual algorithm here and used the relevant primitives from the HTML standard that specify when a document is in focus. We also need to clarify how this works for nested documents. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/239#pullrequestreview-3121052479 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/pull/239/review/3121052479@github.com>
Received on Thursday, 14 August 2025 15:30:13 UTC