-
Notifications
You must be signed in to change notification settings - Fork 118
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
Firefox with ClipboardItem
enabled copies [object Promise]
#90
Comments
ClipboardItem
API just copies [object Promise]
ClipboardItem
enabled copies [object Promise]
This is the relevant code: Line 65 in 80bc0bd
|
MacOS, await navigator.clipboard.write([
new ClipboardItem({
'text/plain': new Promise(async (resolve) => {
resolve(new Blob([svg], { type: 'text/plain' }));
}),
}),
]); |
Thanks for the report. I will take a look soon. |
I think the likely fix will be to remove the |
Fixed via 4a22344. Thanks for reporting! |
Thanks, confirmed working! |
To reproduce:
dom.events.asyncClipboard.clipboardItem
inabout:config
Copy SVG
[object Promise]
I'm not sure where this goes wrong, but I suspect it has something to do with the user agent sniffing. I'm using this same API in this module, so I think it is operational and the bug is from this app code, not from Firefox.
The text was updated successfully, but these errors were encountered: