|
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
|
|
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!
|
|
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?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
The new build should be available next week.
Thanks!
|
|
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!
|
|
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.
|
|
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.
|
|