fix for 139772 - PAC: HTTP auth support. r-dbradley, sr-darin.

This commit is contained in:
suresh%netscape.com 2003-03-26 01:19:52 +00:00
parent d3b6d8390a
commit 83d17cf5cf

View File

@ -125,7 +125,21 @@ nsProxyAutoConfig.prototype = {
// don't cache the PAC content
channel.loadFlags |= nsIRequest.LOAD_BYPASS_CACHE;
pacURL = uri.spec;
channel.notificationCallbacks = this;
channel.asyncOpen(this, null);
Components.returnCode = Components.results.NS_OK;
},
// nsIInterfaceRequestor interface
getInterface: function(iid, instance) {
if (iid.equals(Components.interfaces.nsIAuthPrompt)) {
// 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);
}
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE;
return null;
},
// nsIStreamListener interface