Create an nsIPrompt if needed in notificationCallbacks, to show ftp errors.

bug 256890, r=mostafah


git-svn-id: svn://10.0.0.236/trunk@161865 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mvl%exedo.nl
2004-09-07 19:24:34 +00:00
parent 515f364a35
commit f296b2b1a3

View File

@@ -727,7 +727,13 @@ calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalen
// use the window watcher service to get a nsIAuthPrompt impl
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher);
return ww.getNewAuthPrompter(null);
return ww.getNewAuthPrompter(window);
}
else if (iid.equals(Components.interfaces.nsIPrompt)) {
// use the window watcher service to get a nsIPrompt impl
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher);
return ww.getNewPrompter(window);
}
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE;
return null;