<!--
{
  "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/deniedPermissionMatchPatterns",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebExtensionContext(py)deniedPermissionMatchPatterns"
  },
  "title" : "deniedPermissionMatchPatterns"
}
-->

# deniedPermissionMatchPatterns

The currently denied permission match patterns and their expiration dates.

```
var deniedPermissionMatchPatterns: [WKWebExtension.MatchPattern : Date] { get set }
```

## Discussion

Match patterns that don’t expire will have a distant future date. This will never include expired entries at time of access.

Setting this property will replace all existing entries. Use this property for saving and restoring permission status in bulk.

Match patterns in this dictionary should be explicitly denied by the user before being added. Any match pattern in this collection will not be presented for approval again until they expire. This value should be saved and restored as needed by the app.

## See Also

[`setPermissionStatus(_:for:)`](/documentation/WebKit/WKWebExtensionContext/setPermissionStatus(_:for:)-6auqv)

Sets the status of a match pattern with a distant future expiration date.

[`setPermissionStatus(_:for:expirationDate:)`](/documentation/WebKit/WKWebExtensionContext/setPermissionStatus(_:for:expirationDate:)-7038f)

Sets the status of a match pattern with a specific expiration date.



---

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)