rem: var tempFileSpec = Components.classes["component: 
add: var tempFileSpec = Components.classes["@mozilla.org/filespec;1"].createInstance(Components.interfaces.nsIFileSpec); 
context: function prefNavSelectFile(folderFieldId, stringId, useNative){  var folderField = document.getElementById(folderFieldId);  var dlgString = stringId ? bundle.GetStringFromName(stringId) : '';  var file = getFileOrFolderSpec( dlgString, false );  if( file != -1 )  {    /* XXX nsILocalFile doesn't have a URL string */    if (useNative)    {      folderField.value = file.unicodePath;    }    else    {      // Hack to get a file: url from an nsIFile      var tempFileSpec = Components.classes["component://netscape/filespec"].createInstance(Components.interfaces.nsIFileSpec);      tempFileSpec.nativePath = file.unicodePath;      try {        var url = tempFileSpec.URLString;        if( url )          folderField.value = url;      }      catch(e) {      }    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6cc70ebd6c97bd0b2fe48c31f579e855387ced9d/prefutilities.js/clean/xpfe/components/prefwindow/resources/content/prefutilities.js