dotnet / dotnet/maui

WebView Right Click & Navigation requested notification

Open
#12,751 4 comments 0 reactions 0 assignees View on GitHub
area-controls-webview partner/cat 😻 proposal/open t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

**Right Click**
Ability to show a native context menu, where menu items are defined in XAML/C#, for the WebView when a right click is performed.
Use Cases :
- Show native context menu when right click on the WebView

**Navigation Requested (decision-making)**
Notify when navigation is being requested providing the option to allow or cancel.
Intent is to support the concept of whitelisting and provide ability to review each requested URL to allow or cancel navigation accordingly.
Use Cases :
- Intercept function to launch a web request
- Override calls to different webpages
- Navigation to non-whitelisted URL's
Only whitelisted URL's
- Configuration based domains
Ex. JSON : Domain whitelisting (ex. *.microsoft.com)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.