rem: fp.show();  openNewWindowWith(fp.fileURL.spec); 
add: if (fp.show() == nsIFilePicker.returnOK) { 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();      openNewWindowWith(fp.fileURL.spec);    } catch (ex) { }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8c7e1ff5150be81c95afc27ecb4674b429debd07/navigator.js/clean/xpfe/browser/resources/content/navigator.js