rem: var uri = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.nsIURI); uri.spec = "file: 
add: var uri = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService) .newFileURI(folder); 
context: function showFolder(){  var folderList = document.getElementById("downloadFolderList");  var folder = null;    switch (folderList.selectedIndex) {  case 0:    folder = getDownloadsFolder("Desktop");    break;  case 1:    folder = getDownloadsFolder("Downloads");    break;  case 2:    var path = document.getElementById("downloadFolder").getAttribute("path");    folder = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);    folder.initWithPath(path);    break;  }  try {    folder.reveal();  } catch (ex) {    // if nsILocalFile::Reveal failed (ie it currently just returns an    // error on unix), send the directory to the system file: handler    var uri = Components.classes["@mozilla.org/network/standard-url;1"]      .createInstance(Components.interfaces.nsIURI);    uri.spec = "file:///" + folder.path;    var protocolSvc = Components.classes      ["@mozilla.org/uriloader/external-protocol-service;1"]      .getService(Components.interfaces.nsIExternalProtocolService);    protocolSvc.loadUrl(uri);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3dfdb1e62b967d13c2230fc8193b74c8dd1cd398/pref-downloads.js/clean/toolkit/mozapps/downloads/content/pref-downloads.js