bug 354465 - Fixes calls to nsIAuthPrompt2 so it shows the save password checkbox. r=ctalbert,dmose

This commit is contained in:
mattwillis%gmail.com 2006-09-27 21:14:10 +00:00
Родитель 7e2a0779b2
Коммит 53c32e72c9
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -822,16 +822,14 @@ calDavCalendar.prototype = {
.getNewPrompter(null);
} else if (iid.equals(Components.interfaces.nsIProgressEventSink)) {
return this;
} else if (iid.equals(Components.interfaces.nsIDocShellTreeItem)) {
return this;
} else if (iid.equals(Components.interfaces.nsIAuthPromptProvider)) {
return Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher)
.getNewPrompter(null);
} else if (!isOnBranch && iid.equals(Components.interfaces.nsIAuthPrompt2)) {
return Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher)
.getNewPrompter(null);
.getService(Components.interfaces.nsIPromptFactory)
.getPrompt(null, iid)
}
throw Components.results.NS_ERROR_NO_INTERFACE;
},
@ -907,8 +905,6 @@ calDavCalendar.prototype = {
// nsIProgressEventSink
onProgress: function onProgress(aRequest, aContext, aProgress, aProgressMax) {},
onStatus: function onStatus(aRequest, aContext, aStatus, aStatusArg) {},
// nsIDocShellTreeItem
findItemWithName: function findItemWithName(name, aRequestor, aOriginalRequestor) {}
};
function WebDavResource(url) {