'clipboard-write' permission is 'denied'

Having problems with building or using the JCEF Java binding? Ask your questions here.

'clipboard-write' permission is 'denied'

Postby wangdi » Thu Mar 03, 2022 6:49 am

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?
wangdi
Newbie
 
Posts: 1
Joined: Thu Mar 03, 2022 6:40 am

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

Postby SlimeyWizzard » Wed May 18, 2022 6:49 am

DId you find out anything about it?
Or did you just make a workaround?
SlimeyWizzard
Newbie
 
Posts: 2
Joined: Wed May 18, 2022 6:45 am

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

Postby magreenblatt » Wed May 18, 2022 10:12 am

The clipboard API is not supported currently, see https://bitbucket.org/chromiumembedded/cef/issues/2921
magreenblatt
Site Admin
 
Posts: 11573
Joined: Fri May 29, 2009 6:57 pm

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

Postby SlimeyWizzard » Thu May 19, 2022 5:33 am

Yepp, that seems the case.
Switched to WebView2 that supports it.
Real shame, but had to be done.
SlimeyWizzard
Newbie
 
Posts: 2
Joined: Wed May 18, 2022 6:45 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 2 guests