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

# permissionStatus(for:)

Checks the specified permission against the currently denied, granted, and requested permissions.

## Declaration

```swift
func permissionStatus(for permission: WKWebExtension.Permission) -> WKWebExtensionContext.PermissionStatus
```

## Parameters

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

## Discussion

Discussion Permissions 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:)-4h82n.md)
- [hasPermission(_:)](webkit/wkwebextensioncontext/haspermission(_:).md)
