rem: if (commonDialogService.Confirm(window, title, lString)) profile.migrateProfile( profilename, true ); else return false; 
add: if (commonDialogService.Confirm(window, title, lString)) { profile.deleteProfile( name, false ); var profileKids = document.getElementById( "profilekids" ) profileKids.removeChild( selected ); } return; 
context: function ConfirmDelete(){  deleteButton = document.getElementById("delbutton");  if( deleteButton.getAttribute("disabled") == "true" )    return;  var profileTree = document.getElementById( "profiles" );  var selected = profileTree.selectedItems[0];  var name = selected.getAttribute("rowName");  if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {      // auto migrate if the user wants to. THIS IS REALLY REALLY DUMB PLEASE FIX THE BACK END.    var lString = bundle.GetStringFromName("migratebeforedelete");    lString = lString.replace(/\s*<html:br\/>/g,"\n");    var title = bundle.GetStringFromName("deletetitle");    if (commonDialogService.Confirm(window, title, lString))      profile.migrateProfile( profilename, true );    else      return false;  }  var win = window.openDialog('chrome://communicator/content/profile/deleteProfile.xul', 'Deleter', 'chrome,modal=yes');  return win;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d4388be99e54e25b84e391d5cb49289d63563b27/profileManager.js/clean/profile/resources/content/profileManager.js