rem: var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); 
add: var f = getLocalFileFromNativePathOrUrl(aEvent.target.id);  
context: function onDownloadCancel(aEvent){  gDownloadManager.cancelDownload(aEvent.target.id);  setRDFProperty(aEvent.target.id, "DownloadAnimated", "false");  // XXXben -   // If we got here because we resumed the download, we weren't using a temp file  // because we used saveURL instead. (this is because the proper download mechanism  // employed by the helper app service isn't fully accessible yet... should be fixed...  // talk to bz...)  // the upshot is we have to delete the file if it exists.   var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);  f.initWithPath(aEvent.target.id);  if (f.exists())     f.remove(false);  gDownloadViewController.onCommandUpdate();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b2cb31e2e60f7cfae7c4f15875553453ff2d5929/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js