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

# shouldBePrivate

Indicates whether the window should be private.

```
var shouldBePrivate: Bool { get }
```

## Discussion> Note: To ensure proper isolation between private and non-private data, web views associated with private data must use a different ``doc://com.apple.webkit/documentation/WebKit/WKUserContentController``. Likewise, to be identified as a private web view and to ensure that cookies and other website data is not shared, private web views must be configured to use a non-persistent ``doc://com.apple.webkit/documentation/WebKit/WKWebsiteDataStore``.

---

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)