Bug 1586941 - Removed network.dns.skipTRR-when-parental-control-enabled pref. r=kershaw,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D188395
This commit is contained in:
dylan 2023-09-18 08:25:55 +00:00
parent 69b9814388
commit d75caaf72b
3 changed files with 1 additions and 9 deletions

View File

@ -11693,12 +11693,6 @@
value: false
mirror: always
# Whether DNS resolution is limited to literals and cached entries.
- name: network.dns.skipTRR-when-parental-control-enabled
type: RelaxedAtomicBool
value: true
mirror: always
- name: network.dns.disablePrefetchFromHTTPS
type: bool
value: true

View File

@ -221,7 +221,6 @@ static const char* gCallbackPrefsForSocketProcess[] = {
"network.trr.",
"doh-rollout.",
"network.dns.disableIPv6",
"network.dns.skipTRR-when-parental-control-enabled",
"network.offline-mirrors-connectivity",
"network.disable-localhost-when-offline",
"network.proxy.parse_pac_on_socket_process",

View File

@ -1031,8 +1031,7 @@ void nsHostResolver::ComputeEffectiveTRRMode(nsHostRecord* aRec) {
return;
}
if (StaticPrefs::network_dns_skipTRR_when_parental_control_enabled() &&
TRRService::Get()->ParentalControlEnabled()) {
if (TRRService::Get()->ParentalControlEnabled()) {
aRec->RecordReason(TRRSkippedReason::TRR_PARENTAL_CONTROL);
aRec->mEffectiveTRRMode = nsIRequest::TRR_DISABLED_MODE;
return;