B2G/gecko/browser/base/content/browser.js
/*
 * Determines if a tab is "empty", usually used in the context of determining
 * if it's ok to close the tab.
 */
Determines if a tab is "empty", usually used in the context of determining
if it's ok to close the tab.
Determines if a tab is " empty " usually used in the context of determining if it ' s ok to close the tab .
function isTabEmpty(aTab) {
  if (aTab.hasAttribute("busy"))
    return false;
  let browser = aTab.linkedBrowser;
  if (!isBlankPageURL(browser.currentURI.spec))
    return false;
  if (browser.contentWindow.opener)
    return false;
  if (browser.sessionHistory && browser.sessionHistory.count >= 2)
    return false;
  return true;
}
function isTabEmpty ( aTab ) { if ( aTab . hasAttribute ( "busy" ) ) return false ; let browser = aTab . linkedBrowser ; if ( ! isBlankPageURL ( browser . currentURI . spec ) ) return false ; if ( browser . contentWindow . opener ) return false ; if ( browser . sessionHistory && browser . sessionHistory . count >= 2 ) return false ; return true ; }
Determines if a tab is "empty", usually used in the context of determining
 if it's ok to close the tab.
Determines if a tab is " empty " usually used in the context of determining if it ' s ok to close the tab .