Bug 1644377 - Put Draft-28 behind a pref. r=michal,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D79031
This commit is contained in:
Dragana Damjanovic 2020-06-10 15:48:43 +00:00
parent 43e76aca07
commit f5681bc3e2
2 changed files with 11 additions and 0 deletions

View File

@ -8141,6 +8141,12 @@
value: 1048576
mirror: always
# Support http3 draft 28
- name: network.http.http3.support_draft28
type: RelaxedAtomicBool
value: false
mirror: always
#---------------------------------------------------------------------------
# Prefs starting with "nglayout."
#---------------------------------------------------------------------------

View File

@ -2770,6 +2770,11 @@ HttpTrafficAnalyzer* nsHttpHandler::GetHttpTrafficAnalyzer() {
}
bool nsHttpHandler::IsHttp3VersionSupported(const nsACString& version) {
if (!StaticPrefs::network_http_http3_support_draft28() &&
version.EqualsLiteral("h3-28")) {
return false;
}
for (uint32_t i = 0; i < kHttp3VersionCount; i++) {
if (version.Equals(kHttp3Versions[i])) {
return true;