rem: prefs.ClearUserPref(autoupdateURLTypeBaseString + id); 
context: function DeleteCrlSelected() {  var crlEntry;  // delete selected item  var crltree = document.getElementById("crltree");  var i = crltree.selectedIndex;  if(i<0){    return;  }  crlEntry = crls.GetElementAt(i).QueryInterface(nsICrlEntry);      var autoupdateEnabled = false;  var autoupdateParamAvailable = false;  var id = crlEntry.nameInDb;    //First, check if autoupdate was enabled for this crl  try {    autoupdateEnabled = prefs.GetBoolPref(autoupdateEnabledBaseString + id);    //Note, if the pref is not present, we get an exception right here,    //and autoupdateEnabled remains false    autoupdateParamAvailable = true;    prefs.ClearUserPref(autoupdateEnabledBaseString + id);    prefs.ClearUserPref(autoupdateTimeTypeBaseString + id);    prefs.ClearUserPref(autoupdateTimeBaseString + id);    prefs.ClearUserPref(autoupdateURLTypeBaseString + id);    prefs.ClearUserPref(autoupdateURLBaseString + id);    prefs.ClearUserPref(autoupdateDayCntString + id);    prefs.ClearUserPref(autoupdateFreqCntString + id);    prefs.ClearUserPref(autoupdateErrCntBaseString + id);    prefs.ClearUserPref(autoupdateErrDetailBaseString + id);  } catch(Exception){}  //Once we have deleted the prefs that can be deleted, we save the   //file if relevant, restart the scheduler, and once we are successful   //in doind that, we try to delete the crl   try{    if(autoupdateParamAvailable){      prefs.savePrefFile(null);    }    if(autoupdateEnabled){      certdb.rescheduleCRLAutoUpdate();    }              // Now, try to delete it    certdb.deleteCrl(i);    DeleteItemSelected("crltree", "crltree_", "crlList");    //To do: If delete fails, we should be able to retrieve the deleted    //settings    //XXXXXXXXXXXXXXXXXXXXX    }catch(exception) {    //To Do: Possibly show an error ...    //XXXXXXXXXXXX  }  if( !crltree.selectedItems.length ) {    if( !document.getElementById("deleteCrl").disabled ) {      document.getElementById("deleteCrl").disabled = true;      document.getElementById("editPrefs").disabled = true;      document.getElementById("updateCRL").disabled = true;    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c9a93414367bcafa37e232faec126b1ad5c579d6/crlManager.js/buggy/security/manager/pki/resources/content/crlManager.js