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

# didOpenTab(_:)

Should be called by the app when a new tab is opened to fire appropriate events with all loaded web extensions.

## Declaration

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

## Parameters

- `newTab`: The newly opened tab.

## Discussion

Discussion This method informs all loaded extensions of the opening of a new tab, ensuring consistent understanding across extensions. If the intention is to inform only a specific extension, you should use the respective method on that extension’s context instead.

## See Also

### Related Documentation

- [didCloseTab(_:windowIsClosing:)](webkit/wkwebextensioncontroller/didclosetab(_:windowisclosing:).md)
