MicrosoftEdge / MicrosoftEdge/WebView2Feedback

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

Open
#4,998 2 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.