зеркало из https://github.com/mozilla/pjs.git
Bug #14999; removed use of toolkit app core; rev=dbragg@netscape.com
This commit is contained in:
Родитель
3e98f50de6
Коммит
9dfe4abe47
|
@ -18,7 +18,6 @@
|
|||
* Netscape Communications Corporation. All Rights Reserved.
|
||||
*/
|
||||
|
||||
var toolkit;
|
||||
var browser;
|
||||
var dialog;
|
||||
|
||||
|
@ -28,16 +27,10 @@ function onLoad() {
|
|||
//dialog.current = document.getElementByID( "xpi.currentlyprocessing");
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -75,10 +68,10 @@ function open() {
|
|||
browser.loadUrl( url );
|
||||
|
||||
/* Close dialog. */
|
||||
toolkit.CloseWindow( window );
|
||||
window.close();
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
toolkit.CloseWindow( window );
|
||||
window.close();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
* Netscape Communications Corporation. All Rights Reserved.
|
||||
*/
|
||||
|
||||
var toolkit;
|
||||
var browser;
|
||||
var dialog;
|
||||
|
||||
|
@ -28,16 +27,10 @@ function onLoad() {
|
|||
//dialog.current = document.getElementByID( "xpi.currentlyprocessing");
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -75,10 +68,10 @@ function open() {
|
|||
browser.loadUrl( url );
|
||||
|
||||
/* Close dialog. */
|
||||
toolkit.CloseWindow( window );
|
||||
window.close();
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
toolkit.CloseWindow( window );
|
||||
window.close();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче