Intent to Prototype: Delayed clipboard rendering

147 views
Skip to first unread message

Anupam Snigdha

unread,
Jan 23, 2024, 7:15:54 PM1/23/24
to blin...@chromium.org, Sanket Joshi (EDGE), Evan Stade

Contact emails

Explainer

Specification

Design docs



Summary

Delays the generation of the clipboard payload until it is needed by the target applications. Delayed clipboard rendering leverages the existing Async Clipboard API to allow web applications to improve performance when exchanging large data payloads by only producing the clipboard payload once a target application attempt to access it.



Blink component

Motivation

Source applications typically don’t know where the user intends to paste the content at the time of copy, so web applications may produce several formats when writing to the clipboard to prepare for many possible target applications. The generation of one or more representations may take enough time that it is noticeable to the user, but it is unlikely that the target application will need all produced representations.



Initial public proposal

Search tags

TAG review

TAG review status

Pending

Risks



Interoperability and Compatibility

Delayed clipboard rendering is a new opt-in feature for the async clipboard write() method. If a site doesn't opt-into it, then it will get the existing behaviors. For sites that do opt-in, it would require changes in the ClipboardItem IDL, so it would throw error on browsers that do not support this feature.




WebKit: Positive for built-in formats but negative for web custom formats (https://github.com/WebKit/standards-positions/issues/144) Expressed no concerns for supporting built-in formats, conversation: https://github.com/w3c/editing/issues/417#issuecomment-1452770119 Expressed concerns for supporting web custom formats citing privacy risks: https://github.com/w3c/editing/issues/417#issuecomment-1596575822

Web developers: Strongly positive
Strong positive signals from Adobe: https://github.com/w3c/editing/issues/417#issuecomment-1464355663 Positive signals from Excel Online as well.

Other signals:

Ergonomics

None.



Activation

None.



Security

https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/DelayedClipboard/tag-security-privacy-delayed-clipboard-rendering.md https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/DelayedClipboard/DelayedClipboardRenderingExplainer.md#privacy-and-security-considerations



WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

No.



Debuggability

The Async Clipboard API have tooling support as described in the DevTools support checklist.



Is this feature fully tested by web-platform-tests?

Yes

Flag name on chrome://flags

TBD

Finch feature name



Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

Links to previous Intent discussions

This intent message was generated by Chrome Platform Status.

Thanks,
Anupam

Sent from Outlook

Reply all
Reply to author
Forward
0 new messages