MicrosoftEdge / MicrosoftEdge/WebView2Feedback

CoreWebView2NavigationKind additional types

Open
#3,682 2 comments 0 reactions 3 assignees View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

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

Description

Is your feature request related to a problem? Please describe.
In our CEF build, when navigation is requested, if the cef_transition_type_t is TT_LINK, we cancel navigation and may open the link in the user's default browser instead.
I am trying to copy the same functionality in our WebView2 build in our NavigationStarting event handler. However, I am unable to discern whether the navigation is due to a link click, form submission, script, API call, etc. We really only want to perform this logic on link clicks only.
The recently added CoreWebView2NavigationKind appears to be the CEF equivalent, but is missing types we need, specifically the TT_LINK type.

Describe the solution you'd like and alternatives you've considered
Please add additional types from CEF like TT_LINK to the CoreWebView2NavigationKind enum.

Thanks!

AB#45823429

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.