rem:   var tempFileSpec = Components.classes["component: tempFileSpec.nativePath = fp.file.path;  openNewWindowWith(tempFileSpec.URLString); 
add:  openNewWindowWith(fp.fileURL.spec); 
context:   function BrowserOpenFileWindow()  {    // Get filepicker component.    try {      var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);      fp.init(window, bundle.GetStringFromName("openFile"), nsIFilePicker.modeOpen);      fp.setFilters(nsIFilePicker.filterAll);      fp.show();            // Hack to get a file: url from an nsIFile      var tempFileSpec = Components.classes["component://netscape/filespec"].createInstance(Components.interfaces.nsIFileSpec);      tempFileSpec.nativePath = fp.file.path;            openNewWindowWith(tempFileSpec.URLString);    } catch (ex) { }  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/8242fd67918a2815079a5861488d29d4389ce189/navigator.js/buggy/xpfe/browser/resources/content/navigator.js