Welcome Guest Search | Active Topics | Sign In | Register

Unable to use Clipboard Options
Viz
Posted: Friday, August 7, 2020 3:18:48 PM
Rank: Newbie
Groups: Member

Joined: 4/25/2019
Posts: 5
I recently updated to EO.WebBrowser 20.1.88 from 20.1.45 and the am no longer able to use the clipboard.
I tested with 20.2.19 and saw the same problem.
Calling navigator.clipboard.writeText() now throws a DOMException: Document is not focused.
This will happen in the pre-compiled tabbed browser. If I view the same page in regular Chrome it works without issue.

Anything you can do to help would be much appreciated
eo_support
Posted: Saturday, August 8, 2020 2:17:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We did find a separate problem related to navigator.clipboard.WriteText. That problem will be fixed in our next build. However we have not been able to reproduce the "Document is not focused" error (we get a different error instead). Do you have a page online that we can use to reproduce the problem?

Thanks!
Viz
Posted: Monday, August 10, 2020 9:25:20 AM
Rank: Newbie
Groups: Member

Joined: 4/25/2019
Posts: 5
I unfortunately do not have a page online that can demo the problem.
When is the next build going to be released?
eo_support
Posted: Monday, August 10, 2020 1:23:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

The new build should be available next week.

Thanks!
eo_support
Posted: Wednesday, August 12, 2020 1:35:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

This is just to let you know that we have posted the new build. You can download it from our download page. Please take a look and let us know how it goes.

Thanks!
Viz
Posted: Wednesday, August 19, 2020 11:44:52 AM
Rank: Newbie
Groups: Member

Joined: 4/25/2019
Posts: 5
Sorry for the delay on responding.
This fixed the issue when using the packaged tabbed browser but I still had the failure with my own code.
I identified this to being that I was not handling the WebView.RequestPermissions event.
Once I handled this event and called e.Allow() for the clipboard permission everything worked fine.
Not sure why it seemed to work before with 20.1.45 without this permission.
eo_support
Posted: Wednesday, August 19, 2020 1:04:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Yes. You do need to handle this event. This event has problems as well for navigator.clipboard.writeText in early version. They are both fixed in the new build.


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.