rem: torbutton_log(4, "called prefs_init()"); 
add: torbutton_log(2, "called prefs_init()"); 
context: function torbutton_prefs_init(doc) {    var checkbox_displayStatusPanel = doc.getElementById('torbutton_displayStatusPanel');// return;     torbutton_log(4, "called prefs_init()");    sizeToContent();    // remember if tor settings were enabled when the window was opened    tor_enabled = torbutton_check_status();    var o_torprefs = torbutton_get_prefbranch('extensions.torbutton.');    doc.getElementById('torbutton_displayStatusPanel').checked = o_torprefs.getBoolPref('display_panel');    var panel_style = doc.getElementById('torbutton_panelStyle');    var panel_style_pref = o_torprefs.getCharPref('panel_style');    if (panel_style_pref == 'text')        panel_style.selectedItem = doc.getElementById('torbutton_panelStyleText');    else if (panel_style_pref == 'iconic')        panel_style.selectedItem = doc.getElementById('torbutton_panelStyleIcon');    // doc.getElementById('torbutton_panelStyle').value = o_torprefs.getCharPref('panel_style');    var settings_method = doc.getElementById('torbutton_settingsMethod');    var settings_method_pref = o_torprefs.getCharPref('settings_method');    if (settings_method_pref == 'recommended')        settings_method.selectedItem = doc.getElementById('torbutton_useRecommendedSettings');    else if (settings_method_pref == 'custom')        settings_method.selectedItem = doc.getElementById('torbutton_useCustomSettings');    // doc.getElementById('torbutton_settingsMethod').value = o_torprefs.getCharPref('settings_method');    doc.getElementById('torbutton_usePrivoxy').checked = o_torprefs.getBoolPref('use_privoxy');    doc.getElementById('torbutton_httpProxy').value    = o_torprefs.getCharPref('http_proxy');    doc.getElementById('torbutton_httpPort').value     = o_torprefs.getIntPref('http_port');    doc.getElementById('torbutton_httpsProxy').value   = o_torprefs.getCharPref('https_proxy');    doc.getElementById('torbutton_httpsPort').value    = o_torprefs.getIntPref('https_port');    doc.getElementById('torbutton_ftpProxy').value     = o_torprefs.getCharPref('ftp_proxy');    doc.getElementById('torbutton_ftpPort').value      = o_torprefs.getIntPref('ftp_port');    doc.getElementById('torbutton_gopherProxy').value  = o_torprefs.getCharPref('gopher_proxy');    doc.getElementById('torbutton_gopherPort').value   = o_torprefs.getIntPref('gopher_port');    doc.getElementById('torbutton_socksHost').value    = o_torprefs.getCharPref('socks_host');    doc.getElementById('torbutton_socksPort').value    = o_torprefs.getIntPref('socks_port');    // doc.getElementById('torbutton_warnUponExcludedSite').checked = o_torprefs.getBoolPref('prompt_before_visiting_excluded_sites');    doc.getElementById('torbutton_disablePlugins').checked = o_torprefs.getBoolPref('no_tor_plugins');    doc.getElementById('torbutton_clearHistory').checked = o_torprefs.getBoolPref('clear_history');    doc.getElementById('torbutton_killBadJS').checked = o_torprefs.getBoolPref('kill_bad_js');        if(o_torprefs.getBoolPref('clear_cache')) {        doc.getElementById('torbutton_cacheGroup').selectedItem =            doc.getElementById('torbutton_clearCache');        o_torprefs.setBoolPref('block_cache', false);    } else {        doc.getElementById('torbutton_cacheGroup').selectedItem =            doc.getElementById('torbutton_blockCache');        o_torprefs.setBoolPref('block_cache', true);        o_torprefs.setBoolPref('clear_cache', false);    }            if(o_torprefs.getBoolPref('clear_cookies')) {        doc.getElementById('torbutton_cookieGroup').selectedItem =             doc.getElementById('torbutton_clearCookies');        o_torprefs.setBoolPref('cookie_jars', false);    } else if(o_torprefs.getBoolPref('cookie_jars')) {        doc.getElementById('torbutton_cookieGroup').selectedItem =            doc.getElementById('torbutton_cookieJars');        o_torprefs.setBoolPref('cookie_jars', true);        o_torprefs.setBoolPref('clear_cookies', false);     } else {        doc.getElementById('torbutton_cookieGroup').selectedItem =            doc.getElementById('torbutton_mmmCookies');        o_torprefs.setBoolPref('cookie_jars', false);        o_torprefs.setBoolPref('clear_cookies', false);     }    doc.getElementById('torbutton_noDomStorage').checked =         o_torprefs.getBoolPref('disable_domstorage');        if(o_torprefs.getIntPref('shutdown_method') == 0) {        doc.getElementById('torbutton_shutdownGroup').selectedItem            = doc.getElementById('torbutton_noShutdown');    } else if(o_torprefs.getIntPref('shutdown_method') == 1) {        doc.getElementById('torbutton_shutdownGroup').selectedItem            = doc.getElementById('torbutton_torShutdown');    } else {        o_torprefs.setIntPref('shutdown_method', 2);         doc.getElementById('torbutton_shutdownGroup').selectedItem            = doc.getElementById('torbutton_allShutdown');    }    doc.getElementById('torbutton_noSessionStore').checked = o_torprefs.getBoolPref('disable_sessionstore');    doc.getElementById('torbutton_blockTorHRead').checked = o_torprefs.getBoolPref('block_thread');    doc.getElementById('torbutton_blockTorHWrite').checked = o_torprefs.getBoolPref('block_thwrite');    doc.getElementById('torbutton_blockNonTorHRead').checked = o_torprefs.getBoolPref('block_nthread');    doc.getElementById('torbutton_blockNonTorHWrite').checked = o_torprefs.getBoolPref('block_nthwrite');    doc.getElementById('torbutton_isolateContent').checked = o_torprefs.getBoolPref('isolate_content');    doc.getElementById('torbutton_noSearch').checked = o_torprefs.getBoolPref('no_search');    doc.getElementById('torbutton_noUpdates').checked = o_torprefs.getBoolPref('no_updates');    doc.getElementById('torbutton_setUagent').checked = o_torprefs.getBoolPref('set_uagent');    doc.getElementById('torbutton_noReferer').checked = o_torprefs.getBoolPref('disable_referer');    doc.getElementById('torbutton_spoofEnglish').checked = o_torprefs.getBoolPref('spoof_english');        torbutton_prefs_set_field_attributes(doc);}
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/40dcb9049bb6b7aafbc03e59afa063688fdd530e/preferences.js/buggy/src/chrome/content/preferences.js