Page 1 of 1

'clipboard-write' permission is 'denied'

PostPosted: Thu Mar 03, 2022 6:49 am
by wangdi
when I user the code:
Code: Select all
await navigator.clipboard.writeText(document.getElementById('recordcontent').textContent);

I got the error on DevTools ' console: 'ERROR Error: Uncaught (in promise): NotAllowedError: Write permission denied.'
Did JCEF support Clipboard API?

Re: 'clipboard-write' permission is 'denied'

PostPosted: Wed May 18, 2022 6:49 am
by SlimeyWizzard
DId you find out anything about it?
Or did you just make a workaround?

Re: 'clipboard-write' permission is 'denied'

PostPosted: Wed May 18, 2022 10:12 am
by magreenblatt
The clipboard API is not supported currently, see https://bitbucket.org/chromiumembedded/cef/issues/2921

Re: 'clipboard-write' permission is 'denied'

PostPosted: Thu May 19, 2022 5:33 am
by SlimeyWizzard
Yepp, that seems the case.
Switched to WebView2 that supports it.
Real shame, but had to be done.