B2G/gecko/browser/components/tabview/ui.js
// Selects the given xul:tab in the browser.
Selects the given xul:tab in the browser.
Selects the given xul : tab in the browser .
function UI_goToTab(xulTab) {
    if (gBrowser.selectedTab == xulTab)
      this.onTabSelect(xulTab);
    else
      gBrowser.selectedTab = xulTab;
  }
function UI_goToTab ( xulTab ) { if ( gBrowser . selectedTab == xulTab ) this . onTabSelect ( xulTab ) ; else gBrowser . selectedTab = xulTab ; }
Selects the given xul:tab in the browser.
Selects the given xul : tab in the browser .
// If it's not focused, the onFocus listener would handle it.