mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
fix for assertion for real
This commit is contained in:
parent
751817a15b
commit
519f948a04
@ -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",
|
||||
"",
|
||||
|
@ -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",
|
||||
"",
|
||||
|
Loading…
Reference in New Issue
Block a user