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

@@ -2428,7 +2428,7 @@ void XMLHttpRequestMainThread::MaybeLowerChannelPriority() {
return;
}
if (nsContentUtils::IsTailingEnabled()) {
if (StaticPrefs::network_http_tailing_enabled()) {
nsCOMPtr<nsIClassOfService> cos = do_QueryInterface(mChannel);
if (cos) {
// Adding TailAllowed to overrule the Unblocked flag, but to preserve