SitePermissionsManager

Public interface for managing site permissions data

Types

Link copied to clipboard

Contains possible responses to the permissions.query JavaScript API call - see https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query

Link copied to clipboard
data class SitePermissions(val autoAccept: List<String>, val userHandled: List<String>)

Functions

Link copied to clipboard
abstract suspend fun clearAllButFireproof(fireproofDomains: List<String>)

Deletes all site permissions but the ones that are fireproof

Link copied to clipboard

Returns the proper response for a permissions.query JavaScript API call - see https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query

Link copied to clipboard

Returns an array of permissions that we support and the user has to manually handle