Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - network.http.tailing.enabled, r=Ehsan

Differential Revision: https://phabricator.services.mozilla.com/D29520
This commit is contained in:
Andrea Marchesini
2019-05-01 21:10:31 +00:00
parent dbec9c190a
commit 365d1f89e5
10 changed files with 22 additions and 23 deletions

View File

@@ -692,7 +692,7 @@ nsresult FetchDriver::HttpFetch(
loadInfo->SetCorsPreflightInfo(unsafeHeaders, false);
}
if (mIsTrackingFetch && nsContentUtils::IsTailingEnabled() && cos) {
if (mIsTrackingFetch && StaticPrefs::network_http_tailing_enabled() && cos) {
cos->AddClassFlags(nsIClassOfService::Throttleable |
nsIClassOfService::Tail);
}