rem:  editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell);  if (!editorShell) { dump("editorShell not found!!!\n"); window.close(); return; } 
add: if (!InitEditorShell()) return; 
context: function Startup(){  // get the editor shell from the parent window  editorShell = window.opener.editorShell;  editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell);  if (!editorShell) {    dump("editorShell not found!!!\n");    window.close();    return;    }    // Create dialog object to store controls for easy access  dialog = new Object;  dialog.srcInput = document.getElementById("srcInput");  // Kinda clunky: Message was wrapped in a <p>,  // so actual message is a child text node  dialog.srcMessage = (document.getElementById("srcMessage")).firstChild;  if (null == dialog.srcInput ||      null == dialog.srcMessage )  {    dump("Not all dialog controls were found!!!\n");  }  // Set initial focus  dialog.srcInput.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8f1b0f0e2f48f83a0ca1fc5b895d4b1c08312577/EdInsSrc.js/clean/editor/ui/dialogs/content/EdInsSrc.js