B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * don't save sensitive data if the user doesn't want to
   * (distinguishes between encrypted and non-encrypted sites)
   * @param aIsHTTPS
   *        Bool is encrypted
   * @param aUseDefaultPref
   *        don't do normal check for deferred
   * @returns bool
   */
don't save sensitive data if the user doesn't want to
(distinguishes between encrypted and non-encrypted sites)
@param aIsHTTPS
Bool is encrypted
@param aUseDefaultPref
don't do normal check for deferred
@returns bool
don ' t save sensitive data if the user doesn ' t want to ( distinguishes between encrypted and non - encrypted sites ) @param aIsHTTPS Bool is encrypted @param aUseDefaultPref don ' t do normal check for deferred @returns bool
function ssi_checkPrivacyLevel(aIsHTTPS, aUseDefaultPref) {
    let pref = "sessionstore.privacy_level";
    if (!aUseDefaultPref && this._loadState == STATE_QUITTING && !this._doResumeSession())
      pref = "sessionstore.privacy_level_deferred";
    return this._prefBranch.getIntPref(pref) < (aIsHTTPS ? PRIVACY_ENCRYPTED : PRIVACY_FULL);
  }
function ssi_checkPrivacyLevel ( aIsHTTPS , aUseDefaultPref ) { let pref = "sessionstore.privacy_level" ; if ( ! aUseDefaultPref && this . _loadState == STATE_QUITTING && ! this . _doResumeSession ( ) ) pref = "sessionstore.privacy_level_deferred" ; return this . _prefBranch . getIntPref ( pref ) < ( aIsHTTPS ? PRIVACY_ENCRYPTED : PRIVACY_FULL ) ; }
don't save sensitive data if the user doesn't want to
 (distinguishes between encrypted and non-encrypted sites)
 @param aIsHTTPS
        Bool is encrypted
 @param aUseDefaultPref
        don't do normal check for deferred
 @returns bool
don ' t save sensitive data if the user doesn ' t want to ( distinguishes between encrypted and non - encrypted sites ) @param aIsHTTPS Bool is encrypted @param aUseDefaultPref don ' t do normal check for deferred @returns bool
// If we're in the process of quitting and we're not autoresuming the session // then we should treat it as a deferred session. We have a different privacy // pref for that case.