зеркало из https://github.com/mozilla/pjs.git
fixes bug 287646 "Eliminate nsPIProtocolProxyService and introduce reloadPAC method" r=biesi,neil,beng,mscott sr=bzbarsky
This commit is contained in:
Родитель
96399e5dc3
Коммит
6c93ce12c6
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче