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

Send an event to plugin if they use a function without requesting the rights #3366

Open
Zykino opened this issue May 21, 2024 · 0 comments
Open

Comments

@Zykino
Copy link
Contributor

Zykino commented May 21, 2024

I was thinking on having a new Event (sent through Update). So if the plugin dev want to, they can be notified, request permissions incrementally, and implement a back and forth to request new permission themself.
The flow would be like:

Plugin: Call web_request that require the WebRequestResult permission, but you did not asked for it.
Plugin: Happily continue its work, then return.
Core: Forbid the request, log the issue & send MissingPermission{ Permission: WebRequestResult, Function: web_request, Arguments: Vec["http…"]}
Plugin: Catch the event, know their call was blocked, and can react about it (requesting perm and retrying, doing nothing, logging, …)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant