Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

tabs

aThe BrowserApp object is only available to privileged code running on Firefox for Android, and is intended for use by Firefox for Android add-ons.

Summary

tabs is a property of the BrowserApp object. It is an Array of all currently open tabs, represented as Tab objects.

For example, this function retrieves the array of open tabs from BrowserApp, then fetches each tab's DOM content window, and logs the title of the DOM document loaded into the window:

function logTabTitles(window) {
  var tabs = window.BrowserApp.tabs;
  tabs.forEach(function(tab) {
    window.console.log(tab.window.document.title);
  });
}

Document Tags and Contributors

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