tabs.getAllInWindow()

This method has been deprecated. Use tabs.query({currentWindow: true}, ...) instead.

Gets details about all tabs in the specified window.

Syntax

browser.tabs.getAllInWindow(
  windowId,            // optional integer
  function(tabs) {...} // function
)

Parameters

windowIdOptional
integer. Defaults to the current window.
callback
function. The function is passed the following arguments:
tabs
array of tabs.Tab.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0YesNo
Firefox
Basic supportNo

Acknowledgements

This API is based on Chromium's chrome.tabs API. This documentation is derived from tabs.json in the Chromium code.

Document Tags and Contributors

 Contributors to this page: wbamberg, rolfedh
 Last updated by: wbamberg,