mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
43e76aca07
commit
f5681bc3e2
@ -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."
|
||||
#---------------------------------------------------------------------------
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user