-
Notifications
You must be signed in to change notification settings - Fork 4
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
Control API permissions #23
Comments
Adding some additional thoughts - For the basic permissions cases WebView2 has a One problem we've seen with WebView2 that would apply more generically here is implicitly captured in MicrosoftEdge/WebView2Feedback#2442. As the web platform evolves, these permissions are getting more and more complex. Camera, Geolocation, Notifications, etc. are all fairly simple allow or deny cases. The getDisplayMedia capability of the Screen Capture API is much more complex, with multiple tabs and options that if being given to the host app programmatically need to be customized. Making sure the approach to this problem can scale to future use-cases might need to do something like coordinate with the Permissions Registry as new permissions are added to have recomendations for how WebViews should handle them. |
Control API permissions
Submitter(s)
Maxim Tsoy (DuckDuckGo)
Motivation
In apps that can load arbitrary web apps, such as WebView-powered browsers, it is desirable to give users control over website permissions via custom native UI. For example, a browser can prompt a user to allow a web app to access the camera, and then show an indicator while it's being used. To allow browsers to manage permissions, we need WebView APIs to:
Some examples of permissions include:
Stakeholders
WebView vendors (Google, Microsoft, Apple)
Browser vendors (e.g. DuckDuckGo)
Analysis
There's currently no cross-platform approach and support. Most WebViews provide events / APIs for specific permissions, but the feature parity could be better.
Some specific examples of limitations:
Related W3C deliverables and/or work items
Permissions API
How is the issue solved in the Browser, and what’s more is needed?
Non-webview Browsers have implement this using internal APIs.
The text was updated successfully, but these errors were encountered: