B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * call a callback for all currently opened browser windows
   * (might miss the most recent one)
   * @param aFunc
   *        Callback each window is passed to
   */
call a callback for all currently opened browser windows
(might miss the most recent one)
@param aFunc
Callback each window is passed to
call a callback for all currently opened browser windows ( might miss the most recent one ) @param aFunc Callback each window is passed to
function ssi_forEachBrowserWindow(aFunc) {
    var windowsEnum = Services.wm.getEnumerator("navigator:browser");
    while (windowsEnum.hasMoreElements()) {
      var window = windowsEnum.getNext();
      if (window.__SSi && !window.closed) {
        aFunc.call(this, window);
      }
    }
  }
function ssi_forEachBrowserWindow ( aFunc ) { var windowsEnum = Services . wm . getEnumerator ( "navigator:browser" ) ; while ( windowsEnum . hasMoreElements ( ) ) { var window = windowsEnum . getNext ( ) ; if ( window . __SSi && ! window . closed ) { aFunc . call ( this , window ) ; } } }
call a callback for all currently opened browser windows
 (might miss the most recent one)
 @param aFunc
        Callback each window is passed to
call a callback for all currently opened browser windows ( might miss the most recent one ) @param aFunc Callback each window is passed to