add: /* XXX: Offer option for this? Ugh, so many options..  19:09 < coderman> mikeperry : to disable CSS history hacks and such (regarding browser cache) i had to set browser.cache.memory.enable off, browser.cache.disk.enable off , and network.http.use-cache off.  as for clearing at switch, or leaving off, i don't know.  depends on what you're doing i suppose...  */  if (torprefs.getBoolPref('clear_cache')) { var cache = Components.classes["@mozilla.org/network/cache-service;1"]. getService(Components.interfaces.nsICacheService); cache.evictEntries(0); } 
context: function torbutton_update_status(mode) {    var o_toolbutton = false;    var o_statuspanel = false;    var o_stringbundle = false;    var sPrefix;    var label;    var tooltip;        var torprefs = torbutton_get_prefbranch('extensions.torbutton.');    torprefs.setBoolPref('tor_enabled', mode);    torbutton_log(2, 'called update_status('+mode+')');    torbutton_update_toolbutton(mode);    torbutton_update_statusbar(mode);    torbutton_update_plugin_status(!mode);    if (torprefs.getBoolPref('clear_history')) {        ClearHistory();    }    // XXX: Offer option of cookie jars vs clearing cookies    // Clearing cookies should be the default (Fuck cookies ;)    if (torprefs.getBoolPref('clear_cookies')) {        ClearCookies(mode);    }}
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/6eb06242dc852a2fb22e7c2c565004d895833f1b/torbutton.js/clean/src/chrome/content/torbutton.js