<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 15.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebExtensionContext/permissionStatus(for:)-7mu8",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebExtensionContext(im)permissionStatusForMatchPattern:"
  },
  "title" : "permissionStatus(for:)"
}
-->

# permissionStatus(for:)

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

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

## Parameters

`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.

## See Also

[`permissionStatus(for:in:)`](/documentation/WebKit/WKWebExtensionContext/permissionStatus(for:in:)-nqhm)

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

[`hasAccess(to:in:)`](/documentation/WebKit/WKWebExtensionContext/hasAccess(to:in:))

Checks the specified URL against the currently granted permission match patterns in a specific tab.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)