<!--
{
  "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:)-7ojrb",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebExtensionContext(im)permissionStatusForURL:"
  },
  "title" : "permissionStatus(for:)"
}
-->

# permissionStatus(for:)

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

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

## Parameters

`url`

The URL for which to return the status.

## 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

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

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

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

Checks the specified URL against the currently granted permission match patterns.



---

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)