|
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
|
|
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!
|
|
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!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/26/2015 Posts: 98
|
This is now working correctly! Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Thanks for confirming the fix!
|
|