rem: prefs.ClearUserPref(autoupdateEnabledBaseString + id); prefs.ClearUserPref(autoupdateTimeTypeBaseString + id); prefs.ClearUserPref(autoupdateTimeBaseString + id); prefs.ClearUserPref(autoupdateURLBaseString + id); prefs.ClearUserPref(autoupdateDayCntString + id); prefs.ClearUserPref(autoupdateFreqCntString + id); prefs.ClearUserPref(autoupdateErrCntBaseString + id); prefs.ClearUserPref(autoupdateErrDetailBaseString + id); 
add: prefBranch.clearUserPref(autoupdateEnabledBaseString + id); prefBranch.clearUserPref(autoupdateTimeTypeBaseString + id); prefBranch.clearUserPref(autoupdateTimeBaseString + id); prefBranch.clearUserPref(autoupdateURLBaseString + id); prefBranch.clearUserPref(autoupdateDayCntString + id); prefBranch.clearUserPref(autoupdateFreqCntString + id); prefBranch.clearUserPref(autoupdateErrCntBaseString + id); prefBranch.clearUserPref(autoupdateErrDetailBaseString + id); 
context: function DeleteCrlSelected() {  var crlEntry;  // delete selected item  var crltree = document.getElementById("crltree");  var i = crltree.currentIndex;  if(i<0){    return;  }  crlEntry = crls.queryElementAt(i, nsICRLInfo);      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(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){      crlManager.rescheduleCRLAutoUpdate();    }              // Now, try to delete it    crlManager.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  }  EnableCrlActions();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/20c1620040885ba8fd7aeebe4013a8d5bdc7a3a2/crlManager.js/buggy/security/manager/pki/resources/content/crlManager.js