Skip to content

Feature request: Permissions API #2427

Description

@RendijsSmukulis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestfeature requesttrackedWe are tracking this work internally.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions