The "clipboardchange" event fires whenever the system clipboard contents are changed either by a web app or any other system application. This allows web-apps like remote desktop clients to stay in sync with the system clipboard. It provides an efficient alternative to polling the clipboard for changes.
Today, a web-app can monitor the system clipboard by polling and reading the clipboard through async clipboard API at regular intervals. However, polling is not efficient and this feature aims to introduce an efficient way of notifying web apps when clipboard changes.
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
No milestones specified
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/67454fad.2b0a0220.19a388.0284.GAE%40google.com.
Thanks Rick for reviewing this proposal. I agree that introducing clipboard polling to Chromium might introduce technical debt and performance concerns, that is why we don't want to involve the platform for the initial prototype. We are contemplating on raising a request to MacOS team for providing an official API or an efficient method to detect clipboard changes. It also makes sense to leave it for the web authors to use polling for Mac and not provide clipboardchange event feature on Mac (web authors can also check platform using navigator.userAgentData.platform API). We would like to defer the final decision after the first prototype which will work in Windows / Linux since we can start getting early user feedback from those platforms.
-Rohan
From: Rick Byers <rby...@chromium.org>
Sent: Wednesday, November 27, 2024 9:25 PM
To: Chromestatus <ad...@cr-status.appspotmail.com>
Cc: blin...@chromium.org <blin...@chromium.org>; lukek...@google.com <lukek...@google.com>; Rakesh Goulikar <rakesh....@microsoft.com>; Rohan Raja <ror...@microsoft.com>; Sanket Joshi (EDGE) <sa...@microsoft.com>
Subject: [EXTERNAL] Re: [blink-dev] Intent to Prototype: Clipboardchange event
You don't often get email from rby...@chromium.org. Learn why this is important
You don't often get email from rby...@chromium.org.
Learn why this is important
|