Welcome Guest Search | Active Topics | Sign In | Register

Cannot retrieve DOM/HTML, null exception thrown Options
Peavy
Posted: Wednesday, June 15, 2016 3:38:57 PM
Rank: Advanced Member
Groups: Member

Joined: 6/26/2015
Posts: 98
Hello,

We are running into an issue where in certain sites, retrieving the DOM fails, without any exception. It just returns null.

Code: C#
WebBrowser.GetDOMWindow()


A good example of this would be: https://www.snapchat.com/partners
eo_support
Posted: Thursday, June 16, 2016 12:36:36 PM
Rank: Administration
Groups: Administration

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

This is just to let you know that we are still looking into this issue. The root of the problem is this page has a content-security-policy header entry that disables script evalation from any other source rather than its own. This will fail EvalScript calls, on which GetDOMWindow is based. We are currently looking into ways to by pass this policy for explicit EvalScript calls (as oppose to other eval calls from within JavaScript, which is what this policy's intended target).

Thanks!
eo_support
Posted: Friday, July 1, 2016 1:25:11 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that should resolve this issue. Please download the new build from our download page and let us know how it goes.

Thanks!
Peavy
Posted: Wednesday, July 13, 2016 6:20:33 PM
Rank: Advanced Member
Groups: Member

Joined: 6/26/2015
Posts: 98
This is now working correctly! Thanks!
eo_support
Posted: Thursday, July 14, 2016 11:53:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
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.