B2G/gecko/browser/components/sessionstore/src/nsSessionStartup.js
/**
   * Reads a session state file into a string and lets
   * observers modify the state before it's being used
   *
   * @param aFile is any nsIFile
   * @returns a session state string
   */
Reads a session state file into a string and lets
observers modify the state before it's being used

@param aFile is any nsIFile
@returns a session state string
Reads a session state file into a string and lets observers modify the state before it ' s being used @param aFile is any nsIFile @returns a session state string
function sss_readStateFile(aFile) {
    TelemetryStopwatch.start("FX_SESSION_RESTORE_READ_FILE_MS");
    var stateString = Cc["@mozilla.org/supports-string;1"].
                        createInstance(Ci.nsISupportsString);
    stateString.data = this._readFile(aFile) || "";
    TelemetryStopwatch.finish("FX_SESSION_RESTORE_READ_FILE_MS");
    Services.obs.notifyObservers(stateString, "sessionstore-state-read", "");
    return stateString.data;
  }
function sss_readStateFile ( aFile ) { TelemetryStopwatch . start ( "FX_SESSION_RESTORE_READ_FILE_MS" ) ; var stateString = Cc [ "@mozilla.org/supports-string;1" ] . createInstance ( Ci . nsISupportsString ) ; stateString . data = this . _readFile ( aFile ) || "" ; TelemetryStopwatch . finish ( "FX_SESSION_RESTORE_READ_FILE_MS" ) ; Services . obs . notifyObservers ( stateString , "sessionstore-state-read" , "" ) ; return stateString . data ; }
Reads a session state file into a string and lets
 observers modify the state before it's being used
Reads a session state file into a string and lets observers modify the state before it ' s being used