Bug 1333257 - Only cache V2 misses when doing Safe Browsing lookups. r=francois

MozReview-Commit-ID: 6kvM6z5OnPw
This commit is contained in:
Dimi Lee
2017-01-26 11:36:52 +08:00
parent cc1d4b826e
commit 45dd73df16
3 changed files with 14 additions and 4 deletions

View File

@@ -498,8 +498,10 @@ Classifier::Check(const nsACString& aSpec,
if (LookupCache::Cast<LookupCacheV4>(cache)) {
matchingStatistics |= PrefixMatch::eMatchV4Prefix;
result->mProtocolV2 = false;
} else {
matchingStatistics |= PrefixMatch::eMatchV2Prefix;
result->mProtocolV2 = true;
}
}
}