MicrosoftEdge / MicrosoftEdge/WebView2Feedback

CoreWebView2NavigationCompletedEventArgs does not include a `Uri` property. Why?

Open
#580 16 comments 2 reactions 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since Mar 3, 2025.

feature request priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

The CoreWebView2NavigationCompletedEventArgs event does not include a Uri property. This is the event received when subscribing to the WebView2 NavigationCompleted event. This is rather inconvenient and does not align with the CoreWebView2NavigationStartingEventArgs event which does include a Uri property.

Is this "by design"? Because it feels just like an omission.

Our we now supposed to use a dictionary of NavigationIds to figure out the Uri based on remembering the Uri we get in the NavigationStarting event?

package id="Microsoft.Web.WebView2"
version="1.0.674-prerelease"
targetFramework="net48"

AB#30069393

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.