mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Bug 1891483 - Check parental controls before using ECH r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D207443
This commit is contained in:
parent
212d70c505
commit
276e1e210c
@ -2748,12 +2748,15 @@ bool nsHttpHandler::UseHTTPSRRAsAltSvcEnabled() const {
|
||||
}
|
||||
|
||||
bool nsHttpHandler::EchConfigEnabled(bool aIsHttp3) const {
|
||||
if (mParentalControlEnabled) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!aIsHttp3) {
|
||||
return StaticPrefs::network_dns_echconfig_enabled();
|
||||
}
|
||||
|
||||
return StaticPrefs::network_dns_echconfig_enabled() &&
|
||||
StaticPrefs::network_dns_http3_echconfig_enabled();
|
||||
return StaticPrefs::network_dns_http3_echconfig_enabled();
|
||||
}
|
||||
|
||||
bool nsHttpHandler::FallbackToOriginIfConfigsAreECHAndAllFailed() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user