rem: var fn = !gNavigated ? openTopWin : openNewWindowWith; fn(fp.fileURL.spec); 
add: openTopWin(fp.fileURL.spec); 
context:   function BrowserOpenFileWindow()  {    // Get filepicker component.    try {      var nsIFilePicker = Components.interfaces.nsIFilePicker;      var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);      fp.init(window, bundle.GetStringFromName("openFile"), nsIFilePicker.modeOpen);      fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | 			nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML);      if (fp.show() == nsIFilePicker.returnOK) {        var fn = !gNavigated ? openTopWin : openNewWindowWith;        fn(fp.fileURL.spec);      }    } catch (ex) { }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/951d4d1273ac363ceebcab26e1a9f4caaafbb390/navigator.js/clean/xpfe/browser/resources/content/navigator.js