permissionStatus(for:in:)
Checks the specified permission against the currently denied, granted, and requested permissions.
Declaration
func permissionStatus(for permission: WKWebExtension.Permission, in tab: (any WKWebExtensionTab)?) -> WKWebExtensionContext.PermissionStatusParameters
- permission:
The permission for which to return the status.
- tab:
The tab in which to return the permission status, or
nilif the tab is not known or the global status is desired.
Discussion
Permissions can be granted on a per-tab basis. When the tab is known, access checks should always specify the tab.