Bug #14999; removed use of toolkit app core; rev=tao@netscape.com

This commit is contained in:
law%netscape.com 1999-10-09 06:17:46 +00:00
parent 0bcce9f87d
commit c26435f98e

View File

@ -18,7 +18,6 @@
* Netscape Communications Corporation. All Rights Reserved.
*/
var toolkit;
var browser;
var dialog;
@ -32,16 +31,10 @@ function onLoad() {
dialog.help = document.getElementById( "dialog.help" );
dialog.newWindow = document.getElementById( "dialog.newWindow" );
toolkit = XPAppCoresManager.Find( "toolkitCore" );
if ( !toolkit ) {
toolkit = new ToolkitCore();
toolkit.Init( "toolkitCore" );
}
browser = XPAppCoresManager.Find( window.arguments[0] );
if ( !browser ) {
dump( "unable to get browser app core\n" );
toolkit.CloseWindow( window );
window.close();
return;
}
@ -84,21 +77,21 @@ function open() {
browser.loadUrl( url );
} else {
/* User wants new window. */
toolkit.ShowWindowWithArgs( "chrome:/navigator/content/navigator.xul", window.opener, url );
window.openDialog( "chrome:/navigator/content/", "_blank", "chrome,dialog=no,all", url );
}
/* Close dialog. */
toolkit.CloseWindow( window );
window.close();
}
function choose() {
/* Use existing browser "open" logic. */
browser.openWindow();
toolkit.CloseWindow( window );
window.close();
}
function cancel() {
toolkit.CloseWindow( window );
window.close();
}
function help() {