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

git-svn-id: svn://10.0.0.236/trunk@140312 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
suresh%netscape.com
2003-03-26 01:19:52 +00:00
parent 64ce860e2a
commit 3c69094473

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