[Delayed Clipboard Rendering] Does macOS support setting the data for the requested pasteboard item asynchronously?
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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