window(for:)
Called when the window containing the tab is needed.
Declaration
optional func window(for context: WKWebExtensionContext) -> (any WKWebExtensionWindow)?Parameters
- context:
The context in which the web extension is running.
Discussion
Defaults to nil if not implemented.