---
title: openWindows
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebextensioncontext/openwindows
---

# openWindows

The open windows that are exposed to this extension.

## Declaration

```swift
var openWindows: [any WKWebExtensionWindow] { get }
```

## Discussion

Discussion Provides the windows that are open and visible to the extension, as updated by the didOpenWindow(_:) and didCloseWindow(_:) methods. Initially populated by the windows returned by the extension controller delegate method webExtensionController(_:openWindowsFor:).

## See Also

### Related Documentation

- [didOpenWindow(_:)](webkit/wkwebextensioncontext/didopenwindow(_:).md)
- [didCloseWindow(_:)](webkit/wkwebextensioncontext/didclosewindow(_:).md)
