There's currently no way to list or manage site permissions (e.g. geolocation, camera, microphone) apart from handling the PermissionsRequested event.
To create meaningful indicators of permissions for the users we'd need to:
- Be able to list what permissions have been set for a given site (allow/deny/query)
- Be able to programmatically change and reset them
There's a couple ways this can be enabled:
- Quick-win: add a flag to WebView2 parameters that ensures the PermissionsRequested is fired every time a permission is requested by site. This would allow us to manage the permissions entirely in our code, and decide which ones are cached and when they're reset
- Alternatively, add a proper API that allows listing permissions that have been granted, denied, set to query; and modify/erase them.
AB#39482825
There's currently no way to list or manage site permissions (e.g. geolocation, camera, microphone) apart from handling the PermissionsRequested event.
To create meaningful indicators of permissions for the users we'd need to:
There's a couple ways this can be enabled:
AB#39482825