зеркало из https://github.com/mozilla/gecko-dev.git
bug 354465 - Fixes calls to nsIAuthPrompt2 so it shows the save password checkbox. r=ctalbert,dmose
This commit is contained in:
Родитель
7e2a0779b2
Коммит
53c32e72c9
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче