B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * go through all tabs and store the current scroll positions
   * and innerHTML content of WYSIWYG editors
   * @param aWindow
   *        Window reference
   */
go through all tabs and store the current scroll positions
and innerHTML content of WYSIWYG editors
@param aWindow
Window reference
go through all tabs and store the current scroll positions and innerHTML content of WYSIWYG editors @param aWindow Window reference
function ssi_updateTextAndScrollData(aWindow) {
    var browsers = aWindow.gBrowser.browsers;
    this._windows[aWindow.__SSi].tabs.forEach(function (tabData, i) {
      try {
        this._updateTextAndScrollDataForTab(aWindow, browsers[i], tabData);
      }
      catch (ex) { debug(ex); } 
    }, this);
  }
function ssi_updateTextAndScrollData ( aWindow ) { var browsers = aWindow . gBrowser . browsers ; this . _windows [ aWindow . __SSi ] . tabs . forEach ( function ( tabData , i ) { try { this . _updateTextAndScrollDataForTab ( aWindow , browsers [ i ] , tabData ) ; } catch ( ex ) { debug ( ex ) ; } } , this ) ; }
go through all tabs and store the current scroll positions
 and innerHTML content of WYSIWYG editors
 @param aWindow
        Window reference
go through all tabs and store the current scroll positions and innerHTML content of WYSIWYG editors @param aWindow Window reference
// get as much data as possible, ignore failures (might succeed the next time)