add: o_torprefs.setBoolPref('block_tforms', doc.getElementById('torbutton_blockTorForms').checked); o_torprefs.setBoolPref('block_ntforms', doc.getElementById('torbutton_blockNonTorForms').checked); 
context: function torbutton_prefs_save(doc) {    torbutton_log(2, "called prefs_save()");    var o_torprefs = torbutton_get_prefbranch('extensions.torbutton.');    var o_customprefs = torbutton_get_prefbranch('extensions.torbutton.custom.');    o_torprefs.setBoolPref('display_panel',   doc.getElementById('torbutton_displayStatusPanel').checked);    o_torprefs.setCharPref('panel_style',     doc.getElementById('torbutton_panelStyle').value);    o_torprefs.setCharPref('settings_method', doc.getElementById('torbutton_settingsMethod').value);    o_torprefs.setBoolPref('use_privoxy',     doc.getElementById('torbutton_usePrivoxy').checked);    o_torprefs.setCharPref('http_proxy',      doc.getElementById('torbutton_httpProxy').value);    o_torprefs.setIntPref('http_port',        doc.getElementById('torbutton_httpPort').value);    o_torprefs.setCharPref('https_proxy',     doc.getElementById('torbutton_httpsProxy').value);    o_torprefs.setIntPref('https_port',       doc.getElementById('torbutton_httpsPort').value);    o_torprefs.setCharPref('ftp_proxy',       doc.getElementById('torbutton_ftpProxy').value);    o_torprefs.setIntPref('ftp_port',         doc.getElementById('torbutton_ftpPort').value);    o_torprefs.setCharPref('gopher_proxy',    doc.getElementById('torbutton_gopherProxy').value);    o_torprefs.setIntPref('gopher_port',      doc.getElementById('torbutton_gopherPort').value);    o_torprefs.setCharPref('socks_host',      doc.getElementById('torbutton_socksHost').value);    o_torprefs.setIntPref('socks_port',       doc.getElementById('torbutton_socksPort').value);    if (doc.getElementById('torbutton_settingsMethod').value == 'custom') {        o_customprefs.setCharPref('http_proxy',      doc.getElementById('torbutton_httpProxy').value);        o_customprefs.setIntPref('http_port',        doc.getElementById('torbutton_httpPort').value);        o_customprefs.setCharPref('https_proxy',     doc.getElementById('torbutton_httpsProxy').value);        o_customprefs.setIntPref('https_port',       doc.getElementById('torbutton_httpsPort').value);        o_customprefs.setCharPref('ftp_proxy',       doc.getElementById('torbutton_ftpProxy').value);        o_customprefs.setIntPref('ftp_port',         doc.getElementById('torbutton_ftpPort').value);        o_customprefs.setCharPref('gopher_proxy',    doc.getElementById('torbutton_gopherProxy').value);        o_customprefs.setIntPref('gopher_port',      doc.getElementById('torbutton_gopherPort').value);        o_customprefs.setCharPref('socks_host',      doc.getElementById('torbutton_socksHost').value);        o_customprefs.setIntPref('socks_port',       doc.getElementById('torbutton_socksPort').value);    }    // o_torprefs.setBoolPref('prompt_before_visiting_excluded_sites', doc.getElementById('torbutton_warnUponExcludedSite').checked);    o_torprefs.setBoolPref('no_tor_plugins', doc.getElementById('torbutton_disablePlugins').checked);    o_torprefs.setBoolPref('clear_history', doc.getElementById('torbutton_clearHistory').checked);    o_torprefs.setBoolPref('kill_bad_js', doc.getElementById('torbutton_killBadJS').checked);    o_torprefs.setBoolPref('isolate_content', doc.getElementById('torbutton_isolateContent').checked);    o_torprefs.setBoolPref('clear_cache', doc.getElementById('torbutton_clearCache').selected);    o_torprefs.setBoolPref('block_cache', doc.getElementById('torbutton_blockCache').selected);    o_torprefs.setBoolPref('clear_cookies', doc.getElementById('torbutton_clearCookies').selected);    o_torprefs.setBoolPref('cookie_jars', doc.getElementById('torbutton_cookieJars').selected);    o_torprefs.setBoolPref('disable_domstorage', doc.getElementById('torbutton_noDomStorage').checked);    if(doc.getElementById('torbutton_shutdownGroup').selectedItem ==            doc.getElementById('torbutton_noShutdown')) {        o_torprefs.setIntPref('shutdown_method', 0);     } else if(doc.getElementById('torbutton_shutdownGroup').selectedItem ==            doc.getElementById('torbutton_torShutdown')) {        o_torprefs.setIntPref('shutdown_method', 1);     } else {        o_torprefs.setIntPref('shutdown_method', 2);     }    /* Reset the shutdown option if the user wants to manage own cookies */    if(!o_torprefs.getBoolPref('cookie_jars')             && !o_torprefs.getBoolPref('clear_cookies')) {        o_torprefs.setIntPref('shutdown_method', 0);         doc.getElementById('torbutton_shutdownGroup').selectedItem            = doc.getElementById('torbutton_noShutdown');    }    o_torprefs.setBoolPref('disable_sessionstore', doc.getElementById('torbutton_noSessionStore').checked);    o_torprefs.setBoolPref('block_thread', doc.getElementById('torbutton_blockTorHRead').checked);    o_torprefs.setBoolPref('block_thwrite', doc.getElementById('torbutton_blockTorHWrite').checked);    o_torprefs.setBoolPref('block_nthread', doc.getElementById('torbutton_blockNonTorHRead').checked);    o_torprefs.setBoolPref('block_nthwrite', doc.getElementById('torbutton_blockNonTorHWrite').checked);    o_torprefs.setBoolPref('no_search', doc.getElementById('torbutton_noSearch').checked);    o_torprefs.setBoolPref('no_updates', doc.getElementById('torbutton_noUpdates').checked);        o_torprefs.setBoolPref('set_uagent', doc.getElementById('torbutton_setUagent').checked);    o_torprefs.setBoolPref('disable_referer', doc.getElementById('torbutton_noReferer').checked);    o_torprefs.setBoolPref('spoof_english', doc.getElementById('torbutton_spoofEnglish').checked);    // if tor settings were initially active, update the active settings to reflect any changes    if (tor_enabled) torbutton_activate_tor_settings();}
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/437d52e0a1e9f3a5ab4a16b67a034fc46eb3b871/preferences.js/clean/src/chrome/content/preferences.js