add: window.frames[0].focus(); 
context: function EditorStartup(editorType){  dump("Doing Startup...\n");  contentWindow = window.frames[0];  dump("Trying to make an editor appcore through the component manager...\n");  var editorShell = Components.classes["component://netscape/editor/editorshell"].createInstance();  editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell);  if (!editorShell)  {    dump("Failed to create editor shell\n");    window.close();    return;  }    // store the editor shell in the window, so that child windows can get to it.  window.editorShell = editorShell;    window.editorShell.Init();  window.editorShell.SetWebShellWindow(window);  window.editorShell.SetToolbarWindow(window)  window.editorShell.SetEditorType(editorType);  window.editorShell.SetContentWindow(contentWindow);  // Get url for editor content and load it.  // the editor gets instantiated by the editor shell when the URL has finished loading.  var url = document.getElementById("args").getAttribute("value");  window.editorShell.LoadUrl(url);    dump("EditorAppCore windows have been set.\n");  SetupToolbarElements();  // Set focus to the edit window  // (A bug currently prevents this from working,  //  the actual edit window is a child of the webshell window   //  designated as the contentWindow)  contentWindow.focus();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e5c849294a33cba8efe64c52f2f0aa73eba0a297/EditorCommands.js/clean/editor/ui/composer/content/EditorCommands.js