Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Clipboard copy issue with EO Browser Options
Chidambar DR
Posted: Friday, June 4, 2021 3:55:36 AM
Rank: Newbie
Groups: Member

Joined: 6/4/2021
Posts: 2
Hi All,

I'm facing permission issue on below code with EO Browser,

navigator.clipboard.writeText('some text');

but same code is working with chrome and other browsers.

On EO Browser getting the error as Uncaught (in promise) DOMException: Write permission denied.

Can someone please help me how we can overcome on this issue with EO browser?.

Note: I'm looking with the solution in frontend frameworks like angular.


Thanks,
Chidambar DR
Jack Cheng
Posted: Monday, June 7, 2021 11:31:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,036
Hi,

Please check if you handled WebView.RequestPermissions event. You would need to call e.Allow() inside that event handler in order to allow pasting into clipboard.

Thanks!
Chidambar DR
Posted: Tuesday, June 8, 2021 2:39:52 AM
Rank: Newbie
Groups: Member

Joined: 6/4/2021
Posts: 2
Can you please tell, how we can add this permission in angular?
Jack Cheng
Posted: Tuesday, June 8, 2021 9:56:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,036
Hi,

This has nothing to do with angular. Angular is a JavaScript framework. WebView.RequestPermissions event is an event provided by our component on .NET side. So they are completely unrelated. You could write code to "link" these two completely unrelated things though. For example, you could write code to only grant permission inside your WebView.RequestPermissions event handler (task A) if you detect angular is currently running inside the WebView (task B). But you will need to understand that these are two separate tasks and you are linking them together explicitly through your code. There are no such thing as "adding this permission in angular" anywhere at all.

Thanks!
Viz
Posted: Wednesday, July 14, 2021 3:14:42 PM
Rank: Newbie
Groups: Member

Joined: 4/25/2019
Posts: 5
After updating to EO.WebBrowser 21.0.94, I am running into the same error when attempting to write to the clipboard. Reading from the clipboard still works as expected. I am handling the WebView.RequestPermissions event, which worked previously for both clipboard writes and reads. It appears that the event is no longer being fired for clipboard write attempts only. I have also tried updating to EO.WebBrowser 21.1.67 where the same behavior is observed. Is there anything else I need to do for the event to be fired as it did previously?

Thanks for the help.
Jack Cheng
Posted: Thursday, July 15, 2021 11:20:46 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,036
Hi,

We have confirmed this is an issue in the latest build due to a change in the Chromium's code base. This will be fixed in our next build.

Thanks!
Jack Cheng
Posted: Monday, July 19, 2021 3:11:46 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,036
Hi,

We have posted a new build that fixed this issue on our end. You can download it from our download page. Please take a look and let us know how it goes.

Thanks!
Viz
Posted: Tuesday, July 20, 2021 2:50:10 PM
Rank: Newbie
Groups: Member

Joined: 4/25/2019
Posts: 5
The latest build addressed the issue. Appreciate the help.
Jack Cheng
Posted: Tuesday, July 20, 2021 4:16:45 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,036
Thanks for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.