Open MichaelVach opened 6 years ago
Might be fixed by #2384
@MichaelVach Please try the latest version of the package from https://dotnet.myget.org/gallery/uwpcommunitytoolkit to see if your issue is resolved.
No, the issue is still present with v4.1.0-build.20.
Running against the compiled source on an Insider Build 17744 (I could not compile the source on the current release 17134) I could follow the code to:
Line 97 in WebViewControlProcess.cs
var wvc = await await Task.Run(() => CreateWebViewControlAsync(hostWindowHandle, bounds)).ConfigureAwait(false);
where it hangs.
Everything works fine if I replace the above mentioned line with:
var wvc = await CreateWebViewControlAsync(hostWindowHandle, bounds);
However the above mentioned solution only works for the Insider Build 17744 and not for the current release 17134.
@MichaelVach Thanks for the info!
@MichaelVach I've prepared a fix based on the investigation you did (thanks for that!). I've added a conditional check for RS4 to use the old initialization method, and newer builds to use the simpler await you describe. Please review #2426 if you could and verify the issue is resolved. Thanks again for your help!
@joshholmes FYI
Not sure if related but we had the same symptoms if VS was running "As administrator". Running VS normally or running the app exe directly worked fine.
This issue is still reproducable in the newest version (v. 6.0.1).
I'm submitting a...
Bug report (I searched for similar issues and did not find one)
Current behavior
WPF WebView.NavigateToString() does not return;
Expected behavior
WPF WebView.NavigateToString() completes successfully
Minimal reproduction of the problem with instructions
In WPF XAML:
<wpf:WebView Name="WebView" Loaded="WebView_OnLoaded" />
Code:
Environment