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 onDownloadShow(aEvent){  var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);  f.initWithPath(aEvent.target.id);  if (f.exists()) {    try {      f.reveal();    } catch (ex) {      // if reveal failed for some reason (eg on unix it's not currently      // implemented), open a browser window rooted at the parent      var parent = f.parent;      if (parent) {        openExternal(parent.path);      }    }  }  else {    var brandStrings = document.getElementById("brandStrings");    var appName = brandStrings.getString("brandShortName");      var strings = document.getElementById("downloadStrings");    var name = aEvent.target.getAttribute("target");    var message = strings.getFormattedString("fileDoesNotExistError", [name, appName]);    var title = strings.getFormattedString("fileDoesNotExistShowTitle", [name]);    var promptSvc = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);    promptSvc.alert(window, title, message);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e78348af74b924bd0701a2a0ed39496c91ae38de/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js