MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Feature]: Adding custom text to PermissionRequested prompt

Open
#4,770 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the feature/enhancement you need

I wanted to add custom text to the clipboard read permission prompt, but there is no way of doing this with the built in prompt. I know I could make a custom prompt, but that seems really unnecessary when all I want to do is have a custom message.

The scenario/use case where you would use this feature

This would be used to add some more information/context to the permission requested prompts, like telling users a website could potentially be reading sensitive information from the clipboard, without needing to make a whole custom prompt.

How important is this request to you?

Nice to have. There are other ways to tackle this, but having official API support would be beneficial.

Suggested implementation

A string property could be added to the CoreWebView2PermissionRequestedEventArgs that could be set to the message you want added to the prompt.

The event args is already being used to determine whether or not the WebView2 prompt is displayed (by setting State), so I think it could also be used to pass on the custom message to the prompt.

What does your app do? Is there a pending deadline for this request?

No response

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.

Research direction

Start with the CoreWebView2PermissionRequestedEventArgs API described in the issue and investigate how WebView2 permission prompts consume its State. No implementation files or tests are identified in the payload. Done would mean an official way to supply custom text for the clipboard read permission prompt, with documented behavior and coverage.

Written by the indexing model from the issue text.

Assessment

Domain
api, desktop-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.