Asynchronously read from clipboard in ClipboardItem.getType
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, enhancement)
Tracking
()
People
(Reporter: evilpies, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: spec-needed)
In bug 1689886 I am adding a very basic implementation of clipboard.read
with ClipboardItems. It currently reads everything synchronously from the clipboard. Instead only the required data should be read asynchronously when ClipboardItem.getType
is called.
Reporter | ||
Updated•4 years ago
|
![]() |
||
Updated•4 years ago
|
![]() |
||
Updated•4 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Tom, is this still something that should stay open?
Reporter | ||
Comment 2•2 years ago
|
||
I think in bug 1712122 we went with a different approach and made loading all clipboard entries (types) asynchronous. This would go even further by only loading the requested types. I am not sure if this is something we plan on doing.
Comment 3•2 years ago
|
||
Right now we load all clipboard entries asynchronously when clipboard.read()
is called, which follows the current spec. However there are some discussion about deferring the load when getType()
is actually called, https://github.com/w3c/clipboard-apis/issues/191, I would like to keep this bug open for tracking that.
Updated•1 year ago
|
Description
•