w3c / w3c/editing

[Delayed Clipboard Rendering] Does macOS support setting the data for the requested pasteboard item asynchronously?

Open
#425 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Delayed-Clipboard-Rendering
Dominant language
HTML
Stars
202
Forks
43
PR merge metrics
No merged PRs in 30d

Description

NSPasteboardItemDataProvider provides a way to set a data provider for a pasteboard item. This data provider can be used to provide the data for a particular pasteboard item upon request. But, when pasteboard:item:provideDataForType is called, there is no way to asynchronously populate data for the requested pasteboard item. In provideDataForType, the data needs to be set synchronously.
On macOS, is there a way to defer the population of data for the requested pasteboard item so UAs could initiate an async task to populate the data from sites without blocking the main browser process?
@whsieh @annevk @sanketj

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Apple’s NSPasteboardItemDataProvider documentation and the pasteboard:item:provideDataForType callback linked in the issue. Determine whether macOS provides a supported way to defer pasteboard data population asynchronously, and document the answer and any constraints for user agents.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
desktop-dev, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.