mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
fixes bug 287646 "Eliminate nsPIProtocolProxyService and introduce reloadPAC method" r=biesi,neil,beng,mscott sr=bzbarsky
This commit is contained in:
parent
3d642b84bc
commit
0eabdc62eb
@ -116,12 +116,11 @@ function enableUnlockedElements(elements)
|
||||
}
|
||||
}
|
||||
|
||||
const nsPIProtocolProxyService = Components.interfaces.nsPIProtocolProxyService;
|
||||
|
||||
function ReloadPAC() {
|
||||
var pps = Components.classes["@mozilla.org/network/protocol-proxy-service;1"]
|
||||
.getService(nsPIProtocolProxyService);
|
||||
pps.configureFromPAC(autoURL.value);
|
||||
// XXX(darin): This reloads the PAC URL stored in preferences, which may
|
||||
// differ from what the user may have typed in the UI.
|
||||
Components.classes["@mozilla.org/network/protocol-proxy-service;1"].
|
||||
getService().reloadPAC();
|
||||
}
|
||||
|
||||
function FixProxyURL()
|
||||
|
Loading…
Reference in New Issue
Block a user