Bug 1610423 - stop graying out socks settings when sharing http/ftp/tls proxy settings, r=mkaply,jaws

Differential Revision: https://phabricator.services.mozilla.com/D60855

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gijs Kruitbosch 2020-02-06 19:09:36 +00:00
parent f6a013abd2
commit d4a84f8008

View File

@ -289,13 +289,12 @@ var gConnectionsDialog = {
proxyServerURLPref.updateElements();
proxyPortPref.updateElements();
proxyServerURLPref.disabled =
proxyTypePref.value != 1 || shareProxiesPref.value;
let prefIsShared = proxyPrefs[i] != "socks" && shareProxiesPref.value;
proxyServerURLPref.disabled = proxyTypePref.value != 1 || prefIsShared;
proxyPortPref.disabled = proxyServerURLPref.disabled;
}
var socksVersionPref = Preferences.get("network.proxy.socks_version");
socksVersionPref.disabled =
proxyTypePref.value != 1 || shareProxiesPref.value;
socksVersionPref.disabled = proxyTypePref.value != 1;
this.updateDNSPref();
return undefined;
},