Bug 1900013 - Remove DoH fallback warning prefs from privacy settings UI r=settings-reviewers,mconley

Differential Revision: https://phabricator.services.mozilla.com/D237692
This commit is contained in:
Valentin Gosu
2025-02-12 14:30:27 +00:00
parent 5cdd6a57b4
commit 2b6ee476f3
7 changed files with 0 additions and 106 deletions

View File

@@ -268,8 +268,6 @@ Preferences.addAll([
{ id: "network.trr.uri", type: "string" },
{ id: "network.trr.default_provider_uri", type: "string" },
{ id: "network.trr.custom_uri", type: "string" },
{ id: "network.trr_ui.show_fallback_warning_option", type: "bool" },
{ id: "network.trr.display_fallback_warning", type: "bool" },
{ id: "doh-rollout.disable-heuristics", type: "bool" },
]);
@@ -872,15 +870,6 @@ var gPrivacyPane = {
setEventListener("dohStrictRadio", "command", modeButtonPressed);
setEventListener("dohOffRadio", "command", modeButtonPressed);
function warnCheckboxClicked(e) {
Glean.securityDohSettings.warnCheckboxCheckbox.record({
value: e.target.checked,
});
}
setEventListener("dohWarnCheckbox1", "command", warnCheckboxClicked);
setEventListener("dohWarnCheckbox2", "command", warnCheckboxClicked);
this.populateDoHResolverList("dohEnabled");
this.populateDoHResolverList("dohStrict");
@@ -907,11 +896,6 @@ var gPrivacyPane = {
};
window.addEventListener("unload", unload, { once: true });
if (Preferences.get("network.trr_ui.show_fallback_warning_option").value) {
document.getElementById("dohWarningBox1").hidden = false;
document.getElementById("dohWarningBox2").hidden = false;
}
let uriPref = Services.prefs.getStringPref("network.trr.uri");
// If the value isn't one of the providers, we need to update the
// custom_uri pref to make sure the input box contains the correct URL.