Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Adding custom text to PermissionRequested prompt #4770

Open
dahaged opened this issue Aug 26, 2024 · 0 comments
Open

[Feature]: Adding custom text to PermissionRequested prompt #4770

dahaged opened this issue Aug 26, 2024 · 0 comments
Labels
feature request feature request

Comments

@dahaged
Copy link

dahaged commented Aug 26, 2024

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

@dahaged dahaged added the feature request feature request label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request
Projects
None yet
Development

No branches or pull requests

1 participant