Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayed clipboard rendering #144

Open
anaskim opened this issue Mar 3, 2023 · 2 comments
Open

Delayed clipboard rendering #144

anaskim opened this issue Mar 3, 2023 · 2 comments
Assignees
Labels
concerns: device independence Proposal is hardware- or OS-specific, in a way that may risk the device independence of the Web concerns: privacy This proposal may cause privacy risk if implemented from: Microsoft Proposed, edited, or co-edited by Microsoft. topic: editing Spec relates to text editing venue: W3C Web Editing WG

Comments

@anaskim
Copy link

anaskim commented Mar 3, 2023

Request for position on an emerging web specification

Information about the specification

Design reviews and vendor positions

No TAG review needed as no Web API changes are needed at the moment.

Anything else we need to know

Delayed clipboard rendering is the ability to delay the generation of a particular payload until it is needed by the target applications. It is useful when source applications support several clipboard formats, some or all of which are time-consuming to render. The goal with this proposal is to leverage the existing Async Clipboard API to allow websites exchange large data payloads and improve performance by only producing clipboard payload when target applications request it.

@hober hober added topic: editing Spec relates to text editing from: Microsoft Proposed, edited, or co-edited by Microsoft. labels Mar 22, 2023
@hober hober moved this from Unscreened to Needs position in Standards Positions Review Backlog Mar 23, 2023
@annevk
Copy link
Contributor

annevk commented Mar 25, 2023

Since copying is not mediated by the user agent (other than requiring user activation) we have these concerns:

  • Websites could use this to figure out what apps or websites the user is copying data towards.
  • Websites could use this to figure out user habits. This is a lesser concern.

The first of these could perhaps be remedied by restricting the feature to the "builtin" clipboard types. That would not satisfy w3c/editing#417 (comment). We're not sure about a solution that does.

It also seems likely that the website the user copied from is not available for one reason or another. Websites can get OOM'd without notice. This relates to the user habits concern, but is also a practical concern as the feature might not be that useful on certain devices.

@annevk annevk added concerns: privacy This proposal may cause privacy risk if implemented concerns: device independence Proposal is hardware- or OS-specific, in a way that may risk the device independence of the Web venue: W3C Web Editing WG labels Mar 25, 2023
@hober hober moved this from Needs position to Needs assignees in Standards Positions Review Backlog Mar 27, 2023
@hober hober moved this from Needs assignees to Needs position in Standards Positions Review Backlog Mar 27, 2023
@hober hober changed the title Request for Position on Delayed clipboard rendering Delayed clipboard rendering Mar 30, 2023
@snianu
Copy link

snianu commented Nov 7, 2023

Discussed this issue with privacy folks internally. Removing the support for web custom formats in delay rendering makes the API less useful, but we also want to limit the privacy impact. The proposal is to restrict the number of web custom formats that can be delay rendered. That way a random site can't advertise a large number of web custom formats with delay rendering and cast a wide net to track the user's paste activity. e.g. if we allow only 5 (arbitrary number) web custom formats that can be delay rendered, then it limits the options for sites to track the user paste activity.

It also seems likely that the website the user copied from is not available for one reason or another. Websites can get OOM'd without notice. This relates to the user habits concern, but is also a practical concern as the feature might not be that useful on certain devices.

Discussed the issue and the solution here: w3c/editing#424 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concerns: device independence Proposal is hardware- or OS-specific, in a way that may risk the device independence of the Web concerns: privacy This proposal may cause privacy risk if implemented from: Microsoft Proposed, edited, or co-edited by Microsoft. topic: editing Spec relates to text editing venue: W3C Web Editing WG
Projects
Development

No branches or pull requests

7 participants