rem: protocolChannel.asyncOpen(gPublishingListener, null); 
add: protocolChannel.asyncOpen(gPublishingListener, protocolChannel); 
context: function calendarUploadFile(aSourceFilename, newLocation, fileName, login, password, contentType){   try   {      var protocolChannel = get_destination_channel(newLocation, fileName, login, password);          if (!protocolChannel)      {         dump("failed to get a destination channel\n");         return;      }       output_file_to_channel(protocolChannel, aSourceFilename, contentType);       protocolChannel.asyncOpen(gPublishingListener, null);       dump("done\n");   }   catch (e)   {      alert("an error occurred: " + e + "\n");   }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1cf7bad4e08c012cf29eab24265547eedb87f6ac/publish.js/buggy/calendar/resources/content/publish.js