mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug #14999; removed use of toolkit app core; rev=tao@netscape.com
This commit is contained in:
parent
0bcce9f87d
commit
c26435f98e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user