Specifies what type of browser window to create. The 'panel' and 'detached_panel' types create a popup unless the '--enable-panels' flag is set.
The state of this browser window. Under some circumstances a Window may not be assigned state property, for example when querying closed windows from the sessions API.
The type of browser window this is. Under some circumstances a Window may not be assigned type property, for example when querying closed windows from the sessions API.
ConstonFired when a window is created.
ConstonFired when the currently focused window changes. Will be windows.WINDOW_ID_NONE if all browser windows have lost focus. Note: On some Linux window managers, WINDOW_ID_NONE will always be sent immediately preceding a switch from one browser window to another.
ConstonFired when a window is removed (closed).
ConstWINDOW_The windowId value that represents the current window.
ConstWINDOW_The windowId value that represents the absence of a browser window.
Creates (opens) a new browser with any optional sizing, position or default URL provided.
OptionalcreateData: _CreateCreateDataGets all windows.
OptionalgetInfo: _GetAllGetInfo
Specifies properties used to filter the windows.Window returned and to determine whether they should contain a list of the tabs.Tab objects.
Removes (closes) a window, and all the tabs inside it.
Updates the properties of a window. Specify only the properties that you want to change; unspecified properties will be left unchanged.
Use the
browser.windowsAPI to interact with browser windows. You can use this API to create, modify, and rearrange windows in the browser.Not allowed in: Content scripts, Devtools pages