Skip to content

DownloadStarting event not firing when selecting "Save as" from context menu #4562

Closed
@mikkelmogensen

Description

@mikkelmogensen

What happened?

Run the code and right click a white area. Afterwards select Save as from context menu

Expected behavior:
MessageBox shows

Actual behavior:
MessageBox does not show

However if the google logo is rightclicked the behavior is as expected

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

1.0.2526-prerelease

Framework

WPF

Operating System

Windows 11

OS Version

OS build 22621.3593

Repro steps

using System.Windows;
using Microsoft.Web.WebView2.Wpf;
using Microsoft.Web.WebView2.Core;
public partial class App: Window {
public App() {
var wv = new WebView2();
Dispatcher.Invoke(() => {
wv.EnsureCoreWebView2Async(null);
});
Content = wv;
wv.CoreWebView2InitializationCompleted += (o2, e2) => {
wv.Source = new Uri("https://google.com");
wv.CoreWebView2.DownloadStarting += (o, e) => {
MessageBox.Show("----");
};
};
}
[STAThread]
static void Main(string[] sa) {
new Application().Run(new App());
}
}

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

AB#51156725

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions