mozilla
Your Search Results

    tabs

    The 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, ethertank
    Last updated by: wbamberg,
    Hide Sidebar