---
title: "didOpenTab(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensioncontext/didopentab(_:)"
---

# didOpenTab(_:)

Called by the app when a new tab is opened to fire appropriate events with only this extension.

## Declaration

```swift
func didOpenTab(_ newTab: any WKWebExtensionTab)
```

## Parameters

- `newTab`: The newly opened tab.

## Discussion

Discussion This method informs only the specific extension of the opening of a new tab. If the intention is to inform all loaded extensions consistently, you should use the respective method on the extension controller instead.

## See Also

### Related Documentation

- [openTabs](webkit/wkwebextensioncontext/opentabs.md)
