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] Does macOS support setting the data for the requested pasteboard item asynchronously? #425

Open
snianu opened this issue May 9, 2023 · 2 comments
Labels
Delayed-Clipboard-Rendering Ability to delay the generation of a particular payload until it is needed by the target application

Comments

@snianu
Copy link
Contributor

snianu commented May 9, 2023

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

@snianu snianu added Delayed-Clipboard-Rendering Ability to delay the generation of a particular payload until it is needed by the target application Agenda+ Agenda item to be inserted in the Editing TF meeting queue labels May 9, 2023
@snianu
Copy link
Contributor Author

snianu commented May 11, 2023

@benjamind Do you know how Adobe uses delayed rendering on MacOS? Do the APIs provide the ability to set the data asynchronously for a delayed rendered format?

@snianu snianu removed the Agenda+ Agenda item to be inserted in the Editing TF meeting queue label May 23, 2023
@snianu
Copy link
Contributor Author

snianu commented May 23, 2023

Removing the Agenda+ label. We'll follow-up async with Adobe folks and Webkit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Delayed-Clipboard-Rendering Ability to delay the generation of a particular payload until it is needed by the target application
Projects
None yet
Development

No branches or pull requests

1 participant