MicrosoftEdge / MicrosoftEdge/WebView2Feedback

downloadOperation.StateChanged is not occurring

Open
#2,180 26 comments 1 reaction 1 assignee View on GitHub

@champnic is already working on this.

Since Feb 17, 2022.

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

Description

Description
event handler for DownloadStarting sets e.Handled = True
and adds event handlers for downloadOperation.StateChanged, downloadOperation.BytesReceivedChanged, and downloadOperation.EstimatedEndTimeChanged
downloadOperation.StateChanged is not occurring

Version
Microsoft.Web.WebView2.WinForms & Core 1.0.1108.44
Winforms using .NET Framework 4.7.2
Windows Server 2019 1809 (17763.2452), Visual Studio Professional 2019 16.11.9

When the program runs, the events logged are:
WebView2_CoreWebView2InitializationCompleted
WebView2_NavigationStarting about:blank
WebView2_NavigationCompleted

(navigation complete to about:blank kicks off navigation to actual site using CreateWebResourceRequest and NavigateWithWebResourceRequest)

WebView2_NavigationStarting http://mysite
CoreWebView2_WebResourceRequested
CoreWebView2_WebResourceResponseReceived

(site response includes a file download)

Transfer-Encoding chunked
WebView2_NavigationCompleted
Webview2_DownloadStarting

(downloadOperation event handlers are added here)

EstimatedEndTimeChanged 2/15/2022 8:32:12 PM
InProgress
bytes received 42120
EstimatedEndTimeChanged 2/15/2022 8:32:12 PM
InProgress
EstimatedEndTimeChanged 2/15/2022 8:32:12 PM
InProgress
EstimatedEndTimeChanged 2/15/2022 8:32:12 PM
InProgress
EstimatedEndTimeChanged 2/15/2022 8:32:12 PM
InProgress

AB#41754927

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.