Files
tubestation/extensions/xmlterm/ui/content/XMLTermCommands.js
svn@xmlterm.org c6542c1d9a xmlterm changes only (not part of the default build).
Created some plain vanilla chrome files to invoke XMLterm through mozilla.
Compiles with Feb25 tree.
2000-02-29 15:55:36 +00:00

38 lines
1.1 KiB
JavaScript

function StartupXMLTerm() {
dump("StartupXMLTerm:\n");
dump("StartupXMLTerm:"+window.frames.length+"\n");
dump("StartupXMLTerm:"+window.frames[0].name+"\n");
if (window.frames.length == 2) {
window.frames[1].xmltbrowser = window.frames[0];
xmltwin = frames[1];
} else {
xmltwin = frames[0];
}
dump("StartupXMLterm: WINDOW.ARGUMENTS="+window.arguments+"\n");
dump("Trying to make an XMLTerm Shell through the component manager...\n");
var xmltshell = Components.classes["component://mozilla/xmlterm/xmltermshell"].createInstance();
dump("Interface xmltshell1 = " + xmltshell + "\n");
xmltshell = xmltshell.QueryInterface(Components.interfaces.mozIXMLTermShell);
dump("Interface xmltshell2 = " + xmltshell + "\n");
if (!xmltshell) {
dump("Failed to create XMLTerm shell\n");
window.close();
return;
}
// Store the XMLTerm shell in the window
window.xmlterm = xmltshell;
xmltwin.xmlterm = xmltshell;
// Initialize XMLTerm shell in content window with argvals
window.xmlterm.Init(xmltwin, "",
window.arguments);
}