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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/5dd14170f876d39a9b48e5e57688fa73cc24d125/navigator.js/buggy/xpfe/browser/resources/content/navigator.js