B2G/gecko/browser/base/content/browser.js
/**
 * Re-open a closed window.
 * @param aIndex
 *        The index of the window (via nsSessionStore.getClosedWindowData)
 * @returns a reference to the reopened window.
 */
Re-open a closed window.
@param aIndex
The index of the window (via nsSessionStore.getClosedWindowData)
@returns a reference to the reopened window.
Re - open a closed window . @param aIndex The index of the window ( via nsSessionStore . getClosedWindowData ) @returns a reference to the reopened window .
function undoCloseWindow(aIndex) {
  let ss = Cc["@mozilla.org/browser/sessionstore;1"].
           getService(Ci.nsISessionStore);
  let window = null;
  if (ss.getClosedWindowCount() > (aIndex || 0))
    window = ss.undoCloseWindow(aIndex || 0);
  return window;
}
function undoCloseWindow ( aIndex ) { let ss = Cc [ "@mozilla.org/browser/sessionstore;1" ] . getService ( Ci . nsISessionStore ) ; let window = null ; if ( ss . getClosedWindowCount ( ) > ( aIndex || 0 ) ) window = ss . undoCloseWindow ( aIndex || 0 ) ; return window ; }
Re-open a closed window.
Re - open a closed window .