rem:   output_file_to_channel(protocolChannel, aSourceFilename, contentType); protocolChannel.asyncOpen(gPublishingListener, null); dump("done\n"); } catch (e) { alert("an error occurred: " + e + "\n"); } 
add:   output_file_to_channel(protocolChannel, aSourceFilename, contentType); protocolChannel.asyncOpen(gPublishingListener, null); dump("done\n"); } catch (e) { alert("an error occurred: " + e + "\n"); } 
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;    }    //void setUploadFile(in nsIFile file, in string contentType, in long contentLength);    output_file_to_channel(protocolChannel, aSourceFilename, contentType);    protocolChannel.asyncOpen(gPublishingListener, null);    dump("done\n");  }  catch (e)  {    alert("an error occurred: " + e + "\n");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3180ffffad97a60d90f6f073b8f33ce7722fc4fc/publish.js/buggy/calendar/resources/content/publish.js