SitePermissionsManager
interface SitePermissionsManager
Public interface for managing site permissions data
Types
Link copied to clipboard
data class LocationPermissionRequest(val origin: String, val callback: GeolocationPermissions.Callback) : PermissionRequest
Class that represents a location permission asked callback is used to interact with the site that requested the permission
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
Functions
Link copied to clipboard
Deletes all site permissions but the ones that are fireproof
Link copied to clipboard
abstract suspend fun getPermissionsQueryResponse(url: String, tabId: String, queriedPermission: String): SitePermissionsManager.SitePermissionQueryResponse
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
abstract suspend fun getSitePermissions(tabId: String, request: PermissionRequest): SitePermissionsManager.SitePermissions
Returns an array of permissions that we support and the user has to manually handle
Link copied to clipboard
Checks if a site has been granted a specific set of permissions permanently