Wildlife SOS

Results 9 comments of Wildlife SOS

I've checked that I'm using the latest Canary version and I think that I am. I've also tried to use the NuGet WebView2 1.0.1083-prerelease and that has the same problem

Using the debugger the cookie shows up like this ![CoreWebView2CookieError](https://user-images.githubusercontent.com/40032214/144096557-e6a218c8-6dd5-41ec-847e-62077d338ac0.JPG)

1) WebView21.CoreWebView2.Environment.BrowserVersionString is 98.0.1090.0 canary 2) I have looked at that web page. I do not have the WebView evergreen runtime installed. According to https://www.nuget.org/packages/Microsoft.Web.WebView2 the latest prerelease is 1.0.1083-prerelease...

I've been experimenting calling WebView21.CoreWebView2.ExecuteScriptAsync("document.documentElement.outerHTML;") in timers and using pool tasks Task.Run(Of String)(Function() WebView21.CoreWebView2.ExecuteScriptAsync("document.documentElement.outerHTML;")) In pool tasks I always get errors like System.InvalidOperationException HResult=0x80131509 Message=CoreWebView2 can only be accessed from...

I get the same error if I access the cookies straightaway ![CoreWebView2CookieError2](https://user-images.githubusercontent.com/40032214/144306696-cbaf2e79-a3ff-4639-af44-8ba70a02df51.JPG) I don't understand what you mean by trying to use a dispatcher; could you elaborate?

Thanks for your help so far Nic. I did explore the dispatcher option. I've changed my solution slightly to use ` WebView21.BeginInvoke(Sub() m_getCookiesTask = WebView2Helper.GetCookies(WebView21, WebView21.Source.AbsoluteUri)) WebView21.BeginInvoke(Sub() m_htmlSourceTask = WebView2Helper.GetHtmlSource(WebView21))...

Yes, the helper functions that I call use await already ` Public Shared Async Function GetCookies(ByVal wv As Microsoft.Web.WebView2.WinForms.WebView2, ByVal uri As String) As Task(Of List(Of CoreWebView2Cookie)) Return Await wv.CoreWebView2.CookieManager.GetCookiesAsync(uri)...

Hi @champnic Do you have any idea when this may be fixed? This is a show stopper for me now as I need those cookies for my application to log...