rem: addressbook.exportAddressBook(directory); 
add: addressbook.exportAddressBook(window, directory); 
context: function AbExport(){  try {    var selectedABURI = GetSelectedDirectory();    if (!selectedABURI) return;        var directory = GetDirectoryFromURI(selectedABURI);    addressbook.exportAddressBook(directory);  }  catch (ex) {    var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);    if (promptService) {      var message;      switch (ex.result) {        case Components.results.NS_ERROR_FILE_ACCESS_DENIED:          message = gAddressBookBundle.getString("failedToExportMessageFileAccessDenied");          break;        case Components.results.NS_ERROR_FILE_NO_DEVICE_SPACE:          message = gAddressBookBundle.getString("failedToExportMessageNoDeviceSpace");          break;        default:          message = ex.message;          break;      }      promptService.alert(window,        gAddressBookBundle.getString("failedToExportTitle"),         message);    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d05621e8b4443b886ebc1ea2a83f640e8ffe26c0/addressbook.js/buggy/mail/components/addrbook/content/addressbook.js