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

# permissionStatus(for:)

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

## Declaration

```swift
func permissionStatus(for url: URL) -> WKWebExtensionContext.PermissionStatus
```

## Parameters

- `url`: The URL for which to return the status.

## Discussion

Discussion URLs and 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:)-96xaf.md)
- [hasAccess(to:)](webkit/wkwebextensioncontext/hasaccess(to:).md)
