focusedWindow
The window that currently has focus for this extension.
Declaration
weak var focusedWindow: (any WKWebExtensionWindow)? { get }Discussion
Provides the window that currently has focus, as set by the didFocusWindow(_:) method.
It will be nil if no window has focus or if a window has focus that is not visible to the extension. Initially populated by the window returned by the extension controller delegate method webExtensionController(_:focusedWindowFor:).