rem: if (!promptService.confirm(window, null, confirmDeleteMessage)) 
add: if (directory.isMailList) confirmDeleteMessage = gAddressBookBundle.getString("confirmDeleteMailingList"); else {  if (gPrefs.getCharPref("mail.collect_addressbook") == selectedABURI && (gPrefs.getBoolPref("mail.collect_email_address_outgoing") || gPrefs.getBoolPref("mail.collect_email_address_incoming") || gPrefs.getBoolPref("mail.collect_email_address_newsgroup"))) { var brandShortName = document.getElementById("bundle_brand").getString("brandShortName");  confirmDeleteMessage = gAddressBookBundle.getFormattedString("confirmDeleteCollectionAddressbook", [brandShortName]); clearPrefsRequired = true; } else { confirmDeleteMessage = gAddressBookBundle.getString("confirmDeleteAddressbook"); } }  if (!promptService.confirm(window, gAddressBookBundle.getString( directory.isMailList ? "confirmDeleteMailingListTitle" : "confirmDeleteAddressbookTitle"), confirmDeleteMessage)) 
context: function AbDeleteDirectory(){  var selectedABURI = GetSelectedDirectory();  if (!selectedABURI)    return;  var parentArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);  if (!parentArray)     return;   var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);   var parentRow = GetParentRow(dirTree, dirTree.currentIndex);  var parentId = (parentRow == -1) ? "moz-abdirectory://" : dirTree.builderView.getResourceAtIndex(parentRow).Value;  var parentDir = GetDirectoryFromURI(parentId);  parentArray.AppendElement(parentDir);      var directory = GetDirectoryFromURI(selectedABURI);  var confirmDeleteMessage = gAddressBookBundle.getString(directory.isMailList ? "confirmDeleteMailingList" : "confirmDeleteAddressbook");  if (!promptService.confirm(window, null, confirmDeleteMessage))    return;  var resourceArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);  var selectedABResource = GetDirectoryFromURI(selectedABURI).QueryInterface(Components.interfaces.nsIRDFResource);  resourceArray.AppendElement(selectedABResource);  top.addressbook.deleteAddressBooks(dirTree.database, parentArray, resourceArray);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/fc27b8b3f7b294d66bed5580d8717125199269a8/addressbook.js/buggy/mail/components/addrbook/content/addressbook.js