mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
fix for 139772 - PAC: HTTP auth support. r-dbradley, sr-darin.
This commit is contained in:
parent
d3b6d8390a
commit
83d17cf5cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user