rem: filePicker.chooseInputFile(editorShell.GetString("OpenHTMLFile"), filePicker.eHTMLFiles+filePicker.eTextFiles+filePicker.eAllFiles, 0, 0); /* need to handle cancel (uncaught exception at present) */ 
add: try { filePicker.chooseInputFile(editorShell.GetString("OpenHTMLFile"), filePicker.eHTMLFiles+filePicker.eTextFiles+filePicker.eAllFiles, 0, 0); /* need to handle cancel (uncaught exception at present) */ } catch (ex) { dump("filePicker.chooseInputFile threw an exception\n"); } 
context: function EditorOpen(){  dump("In EditorOpen..\n");  var filePicker = Components.classes["component://netscape/filespecwithui"].createInstance();  filePicker = filePicker.QueryInterface(Components.interfaces.nsIFileSpecWithUI);         /* doesn't handle *.shtml files */	filePicker.chooseInputFile(editorShell.GetString("OpenHTMLFile"), filePicker.eHTMLFiles+filePicker.eTextFiles+filePicker.eAllFiles, 0, 0);  /* need to handle cancel (uncaught exception at present) */      /* check for already open window and activate it... */  var found = FindAndSelectEditorWindowWithURL(filePicker.URLString);  if (!found)  {  /* open new window */    window.openDialog( "chrome://editor/content",                 "_blank",                 "chrome,dialog=no,all",                 filePicker.URLString );  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/264068946d07e9c70c9f0c67d3ddad33d8c9b14d/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js