---
title: openTabs
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebextensioncontext/opentabs
---

# openTabs

A set of open tabs in all open windows that are exposed to this extension.

## Declaration

```swift
var openTabs: Set<AnyHashable> { get }
```

## Discussion

Discussion Provides a set of tabs in all open windows that are visible to the extension, as updated by the didOpenTab(_:) and didCloseTab:windowIsClosing: methods. Initially populated by the tabs in the windows returned by the extension controller delegate method webExtensionController(_:openWindowsFor:).

## See Also

### Related Documentation

- [didOpenTab(_:)](webkit/wkwebextensioncontext/didopentab(_:).md)
