|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
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!
|
|
Rank: Newbie Groups: Member
Joined: 6/4/2021 Posts: 2
|
Can you please tell, how we can add this permission in angular?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
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!
|
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
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!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
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!
|
|
Rank: Newbie Groups: Member
Joined: 4/25/2019 Posts: 5
|
The latest build addressed the issue. Appreciate the help.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Thanks for confirming the fix!
|
|