MicrosoftEdge/WebView2Feedback

[Problem/Bug]: File / Folder Browse dialog opening can cause an AppCrash

IDS-Skunkworks opened this issue · 2 comments

What happened?

When a WebView2 control is embedded in a WinForms App and used to display web pages, clicking a control in the web page that causes a file/folder browse dialog box to open (for uploading files/folders to SharePoint, for example), the App hosting the WebView2 control can experience a crash to desktop with EmbeddedBrowserWebView.dll logging exception code 0x80000003 (ERROR_PATH_NOT_FOUND) if the dialog is trying to display a location that no longer exists (a deleted folder) or is inaccessible (disconnected network drive). This has been experienced on version 131.0.2903.99 of the WebView2 DLL.
Err1.txt
Err2.txt
Err3.txt

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

131.0.2903.99

SDK Version

No response

Framework

Winforms

Operating System

Windows 10, Windows 11

OS Version

No response

Repro steps

Display a web page in the WebView2 control that itself has a control which causes a file/folder browse dialog to appear. In certain circumstances where the previous location used by the dialog is no longer available (deleted folder, inaccessible network drive etc.) WebView2 will cause a crash to desktop.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Hi, @IDS-Skunkworks!

It seems that your issue contains the word "crash". If you have not already, could you attach a crash dump as a comment?

WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): <UDF>\EBWebView\Crashpad\reports\. By default, the user data folder is created in the app's folder with a name like <App Exe Name>.exe.WebView2. Refer to Crash Diagnostics for more information.

Thank you for your cooperation!

Hi, @IDS-Skunkworks!

It seems that your issue contains the word "crash". If you have not already, could you attach a crash dump as a comment?

WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): <UDF>\EBWebView\Crashpad\reports\. By default, the user data folder is created in the app's folder with a name like <App Exe Name>.exe.WebView2. Refer to Crash Diagnostics for more information.

Thank you for your cooperation!

Hi,

Just reproduced the issue and unfortunately that folder is empty so there is nothing to attach, sorry.