MicrosoftEdge / MicrosoftEdge/WebView2Feedback
CoreWebView2NavigationKind additional types
@Lakshmisha-KS is already working on this.
Since Feb 12, 2025.
- 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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.