---
title: "permissionStatus(for:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensioncontext/permissionstatus(for:)-7mu8"
---

# permissionStatus(for:)

Checks the specified match pattern against the currently denied, granted, and requested permission match patterns.

## Declaration

```swift
func permissionStatus(for pattern: WKWebExtension.MatchPattern) -> WKWebExtensionContext.PermissionStatus
```

## Parameters

- `pattern`: The pattern for which to return the status.

## Discussion

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.

## See Also

### Related Documentation

- [permissionStatus(for:in:)](webkit/wkwebextensioncontext/permissionstatus(for:in:)-nqhm.md)
- [hasAccess(to:in:)](webkit/wkwebextensioncontext/hasaccess(to:in:).md)
