B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * Calls onClose for windows that are determined to be closed but aren't
   * destroyed yet, which would otherwise cause getBrowserState and
   * setBrowserState to treat them as open windows.
   */
Calls onClose for windows that are determined to be closed but aren't
destroyed yet, which would otherwise cause getBrowserState and
setBrowserState to treat them as open windows.
Calls onClose for windows that are determined to be closed but aren ' t destroyed yet which would otherwise cause getBrowserState and setBrowserState to treat them as open windows .
function ssi_handleClosedWindows() {
    var windowsEnum = Services.wm.getEnumerator("navigator:browser");
    while (windowsEnum.hasMoreElements()) {
      var window = windowsEnum.getNext();
      if (window.closed) {
        this.onClose(window);
      }
    }
  }
function ssi_handleClosedWindows ( ) { var windowsEnum = Services . wm . getEnumerator ( "navigator:browser" ) ; while ( windowsEnum . hasMoreElements ( ) ) { var window = windowsEnum . getNext ( ) ; if ( window . closed ) { this . onClose ( window ) ; } } }
Calls onClose for windows that are determined to be closed but aren't
 destroyed yet, which would otherwise cause getBrowserState and
 setBrowserState to treat them as open windows.
Calls onClose for windows that are determined to be closed but aren ' t destroyed yet which would otherwise cause getBrowserState and setBrowserState to treat them as open windows .