fix for assertion for real

This commit is contained in:
pavlov%netscape.com 2000-05-07 19:56:55 +00:00
parent 751817a15b
commit 519f948a04
2 changed files with 20 additions and 16 deletions

View File

@ -133,14 +133,16 @@ nsFilePicker.prototype = {
o.retvals = new Object();
var parent;
if (this.mParentWindow) {
parent = this.mParentWindow;
} else if (window) {
parent = window;
} else {
var appShellService = Components.classes[APPSHELL_SERV_PROGID].getService(nsIAppShellService);
parent = appShellService.GetHiddenWindow();
}
try {
if (this.mParentWindow) {
parent = this.mParentWindow;
} else if (window) {
parent = window;
} else {
var appShellService = Components.classes[APPSHELL_SERV_PROGID].getService(nsIAppShellService);
parent = appShellService.GetHiddenWindow();
}
} catch(ex) { }
parent.openDialog("chrome://global/content/filepicker.xul",
"",

View File

@ -133,14 +133,16 @@ nsFilePicker.prototype = {
o.retvals = new Object();
var parent;
if (this.mParentWindow) {
parent = this.mParentWindow;
} else if (window) {
parent = window;
} else {
var appShellService = Components.classes[APPSHELL_SERV_PROGID].getService(nsIAppShellService);
parent = appShellService.GetHiddenWindow();
}
try {
if (this.mParentWindow) {
parent = this.mParentWindow;
} else if (window) {
parent = window;
} else {
var appShellService = Components.classes[APPSHELL_SERV_PROGID].getService(nsIAppShellService);
parent = appShellService.GetHiddenWindow();
}
} catch(ex) { }
parent.openDialog("chrome://global/content/filepicker.xul",
"",