extension.getExtensionTabs()

Returns an array of the JavaScript 'window' objects for each of the tabs running inside the current extension. If windowId is specified, returns only the 'window' objects of tabs attached to the specified window.

Syntax

browser.extension.getExtensionTabs(
  windowId // optional integer
)

Parameters

windowIdOptional
integer.

Return value

array of object. Array of global window objects

Browser compatibility

Desktop Mobile
Edge Firefox Chrome Opera Firefox
Basic Support ? No Yes No No

Acknowledgements

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

Document Tags and Contributors

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