зеркало из https://github.com/mozilla/gecko-dev.git
Create an nsIPrompt if needed in notificationCallbacks, to show ftp errors.
bug 256890, r=mostafah
This commit is contained in:
Родитель
30e63c4179
Коммит
64e58f45c4
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче