B2G/gecko/browser/components/preferences/privacy.js
/**
   * Update the private browsing auto-start pref and the history mode
   * micro-management prefs based on the history mode menulist
   */
Update the private browsing auto-start pref and the history mode
micro-management prefs based on the history mode menulist
Update the private browsing auto - start pref and the history mode micro - management prefs based on the history mode menulist
function PPP_updateHistoryModePrefs()
  {
    let pref = document.getElementById("browser.privatebrowsing.autostart");
    switch (document.getElementById("historyMode").value) {
    case "remember":
      pref.value = false;
      let rememberHistoryCheckbox = document.getElementById("rememberHistory");
      if (!rememberHistoryCheckbox.checked)
        rememberHistoryCheckbox.checked = true;
      document.getElementById("browser.formfill.enable").value = true;
      document.getElementById("network.cookie.cookieBehavior").value = 0;
      document.getElementById("network.cookie.lifetimePolicy").value = 0;
      document.getElementById("privacy.sanitize.sanitizeOnShutdown").value = false;
      break;
    case "dontremember":
      pref.value = true;
      break;
    }
  }
function PPP_updateHistoryModePrefs ( ) { let pref = document . getElementById ( "browser.privatebrowsing.autostart" ) ; switch ( document . getElementById ( "historyMode" ) . value ) { case "remember" : pref . value = false ; let rememberHistoryCheckbox = document . getElementById ( "rememberHistory" ) ; if ( ! rememberHistoryCheckbox . checked ) rememberHistoryCheckbox . checked = true ; document . getElementById ( "browser.formfill.enable" ) . value = true ; document . getElementById ( "network.cookie.cookieBehavior" ) . value = 0 ; document . getElementById ( "network.cookie.lifetimePolicy" ) . value = 0 ; document . getElementById ( "privacy.sanitize.sanitizeOnShutdown" ) . value = false ; break ; case "dontremember" : pref . value = true ; break ; } }
Update the private browsing auto-start pref and the history mode
 micro-management prefs based on the history mode menulist
Update the private browsing auto - start pref and the history mode micro - management prefs based on the history mode menulist
// select the remember history option if needed // select the remember forms history option // select the accept cookies option // select the cookie lifetime policy option // select the clear on close option