This change removes the requirement for the "clipboard-read" permission when using the Async Clipboard API from within a "paste" event handler. It also applies to writing to the clipboard inside a "copy" or "cut" event, although writing plain text to the clipboard was already permitted on ANY user gesture, so this is a less notable change. Browser vendors differ in the details of how they permit access to the Async Clipboard API, but this change brings Chromium into alignment with other vendors and the specification [1] which states that read access is to be permitted when > the current script is running as a result of user interaction with a "Paste" element created by the user agent or operating system. [1] https://www.w3.org/TR/clipboard-apis/
Improves interop by aligning Chromium behavior more closely to other browser vendors. (Other vendors don't use permissions at all, but allow access to the API in appropriate event handlers, and Chromium will now follow suit on the latter point.)
The Async Clipboard API might be used in tandem with the permissions API. This change affects how often the clipboard permissions are actually relevant. For example, the permission status is no longer relevant if the intended usage is inside a "paste" event handler. This could lead to a situation where an existing in-situ message warning/preparing users about an impending permission prompt are no longer required.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
Currently only tested by internal WPT due to hurdle of updating test-driver
Shipping on desktop | 122 |
Shipping on Android | 122 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
None