permissionStatus(for:)
Checks the specified match pattern against the currently denied, granted, and requested permission match patterns.
Declaration
func permissionStatus(for pattern: WKWebExtension.MatchPattern) -> WKWebExtensionContext.PermissionStatusParameters
- pattern:
The pattern for which to return the status.
Discussion
Match patterns can be granted on a per-tab basis. When the tab is known, access checks should always use the method that checks in a tab.