mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Backed out 92e3821d85c2 (bug 449251) for bustage.
This commit is contained in:
commit
b04ee297c7
@ -27,15 +27,8 @@ var gConnectionsDialog = {
|
||||
var backupPortPref = document.getElementById("network.proxy.backup." + proxyPrefs[i] + "_port");
|
||||
backupServerURLPref.value = proxyServerURLPref.value;
|
||||
backupPortPref.value = proxyPortPref.value;
|
||||
// SOCKS: not a protocol: set value to empty/0 while shareProxies is on
|
||||
if (proxyPrefs[i] == "socks") {
|
||||
proxyServerURLPref.value = "";
|
||||
proxyPortPref.value = 0;
|
||||
} else {
|
||||
// protocols get HTTP proxy's values
|
||||
proxyServerURLPref.value = httpProxyURLPref.value;
|
||||
proxyPortPref.value = httpProxyPortPref.value;
|
||||
}
|
||||
proxyServerURLPref.value = httpProxyURLPref.value;
|
||||
proxyPortPref.value = httpProxyPortPref.value;
|
||||
}
|
||||
}
|
||||
|
||||
@ -141,10 +134,6 @@ var gConnectionsDialog = {
|
||||
{
|
||||
var shareProxiesPref = document.getElementById("network.proxy.share_proxy_settings");
|
||||
if (shareProxiesPref.value) {
|
||||
// during shareProxiesPref SOCKS values are empty
|
||||
if (aProtocol == 'socks') {
|
||||
return aIsPort ? 0 : "";
|
||||
}
|
||||
var pref = document.getElementById("network.proxy.http" + (aIsPort ? "_port" : ""));
|
||||
return pref.value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user