w3c / editing

Specs and explainers maintained by the editing task force
http://w3c.github.io/editing/
Other
192 stars 40 forks source link

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

Open snianu opened 1 year ago

snianu commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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