bug 1498758 - Update placeholder value of DNS over HTTPS input, add default pref value r=jduell

Update placeholder value of DNS over HTTPS input to the cloudflare provider add a default pref value for network.trr.uri

Differential Revision: https://phabricator.services.mozilla.com/D8639
This commit is contained in:
Erica Wright
2018-10-13 02:16:31 +00:00
parent d6dbff033d
commit 50466fb019
4 changed files with 10 additions and 5 deletions

View File

@@ -42,6 +42,7 @@ window.addEventListener("DOMContentLoaded", () => {
gConnectionsDialog.proxyTypeChanged.bind(gConnectionsDialog));
Preferences.get("network.proxy.socks_version").on("change",
gConnectionsDialog.updateDNSPref.bind(gConnectionsDialog));
gConnectionsDialog.initDnsOverHttpsUI();
document
.getElementById("disableProxyExtension")
@@ -310,4 +311,9 @@ var gConnectionsDialog = {
// turn an empty string into `undefined` to clear the pref back to the default
return uriString.length ? uriString : undefined;
},
initDnsOverHttpsUI() {
let input = document.getElementById("networkDnsOverHttpsUrl");
input.placeholder = Preferences.get("network.trr.uri").defaultValue;
},
};