CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.
https://aka.ms/windowsappsdk
Other
383 stars 89 forks source link

WebViewCompatible.Navigate hangs indefinitely when process is elevated #265

Closed znakeeye closed 4 years ago

znakeeye commented 4 years ago

The WebViewCompatible control is completely broken when the process is run as administrator. Simply create a WPF app, reference the NuGet (6.0.1) and add the following code. Run as administrator and watch the UI hang - forever.

Sample code

<controls:WebViewCompatible x:Name="webView"/>
public MainWindow()
{
    InitializeComponent();
    Loaded += OnLoaded;
}

private void OnLoaded(object sender, RoutedEventArgs e)
{
    webView.Navigate("http://html5test.com");
}

Environment

NuGet Package(s): 
`Microsoft.Toolkit.Wpf.UI.Controls.WebView`

Package Version(s): 
**6.0.1**

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [X] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [X] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)

Device form factor:
- [X] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [ ] 2019 (version: ) 
- [X] 2019 (version: )

Additional context

Targeting .NET Framework 4.7.2..

ghost commented 4 years ago

Hello znakeeye, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

znakeeye commented 4 years ago

From Event Viewer:

Faulting application name: Win32WebViewHost.exe, version: 10.0.17763.1, time stamp: 0xb4ca2968
Faulting module name: edgemanager.dll, version: 11.0.17763.1192, time stamp: 0xdac01df0
Exception code: 0xc0000409
Fault offset: 0x0000000000018448
Faulting process id: 0x7320
Faulting application start time: 0x01d629fe214bca91
Faulting application path: C:\Windows\SystemApps\Microsoft.Win32WebViewHost_cw5n1h2txyewy\Win32WebViewHost.exe
Faulting module path: C:\WINDOWS\SYSTEM32\edgemanager.dll
Report Id: f6d11768-4615-4dfd-9a56-d9992bbb5682
Faulting package full name: Microsoft.Win32WebViewHost_10.0.17763.1_neutral_neutral_cw5n1h2txyewy
Faulting package-relative application ID: DPI.PerMonitorAware
Kyaa-dost commented 4 years ago

@pagoe-msft FYI ⬆️

ghost commented 4 years ago

Hello znakeeye, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

michael-hawker commented 4 years ago

Duplicate of #13