rem: const nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, gNavigatorBundle.getString("openFile"), nsIFilePicker.modeOpen); fp.appendFilters(nsIFilePicker.filterAll | nsIFilePicker.filterText | nsIFilePicker.filterImages | nsIFilePicker.filterXML | nsIFilePicker.filterHTML);  if (fp.show() == nsIFilePicker.returnOK) openTopWin(fp.fileURL.spec); } catch (ex) { } 
add: openTopWin(selectFileToOpen("openFile", "browser.open.")); } catch (e) {} 
context: function BrowserOpenFileWindow(){  // Get filepicker component.  try {    const nsIFilePicker = Components.interfaces.nsIFilePicker;    var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);    fp.init(window, gNavigatorBundle.getString("openFile"), nsIFilePicker.modeOpen);    fp.appendFilters(nsIFilePicker.filterAll | nsIFilePicker.filterText | nsIFilePicker.filterImages |                     nsIFilePicker.filterXML | nsIFilePicker.filterHTML);    if (fp.show() == nsIFilePicker.returnOK)      openTopWin(fp.fileURL.spec);  } catch (ex) {  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b63c0d71b47b75a89e589850be624f47b8b4a6aa/navigator.js/clean/suite/browser/navigator.js