getPermissionsQueryResponse

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

Return

state of the permission as expected by the API: 'granted', 'prompt', or 'denied'

Parameters

url

website querying the permission

tabId

the tab where the query was originated

queriedPermission

permission being queried (note: this is different from WebView permissions, check link above)