Nic Champagne Williamson [MSFT]
Nic Champagne Williamson [MSFT]
I've added this as a bug on our backlog. Thanks!
Where does the code for calling the host object on the Javascript side live? Is it in script that you inject with AddScriptToExecuteOnDocumentCreated? If so, your script will be reloaded...
Thanks for the info. For you step 3) above, would you be able to share your javascript code that is calling into the host object? And is that javascript code...
Thanks so much for the repro! I've opened a bug on our backlog to take a closer look.
Hey @BobbyShoe - are both of those WebView2 controls within the same app?
This sounds like a bug on our end. Also seems related to this comment: https://github.com/MicrosoftEdge/WebView2Feedback/issues/41#issuecomment-618078194 I've opened this as a separate issue on our backlog. Thanks!
Hey @JimWard2018 - You can verify the version of the runtime that your app is using by looking at the command-line of the launched child `msedgewebview2.exe` process in Task Manager...
Thanks for the added info and confirmations! It might be worth trying to use a dispatcher to make sure the cookies are accessed from the WebView2 thread, but from what...
This is what I had in mind with the dispatcher, although I realize now it's WPF and you are using Winforms :/ https://docs.microsoft.com/en-us/dotnet/api/system.windows.threading.dispatcher?view=windowsdesktop-6.0
Thanks for confirming. I've added this as a bug on our backlog. Have you also tried using "await"?