Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 5 - Correct pref checks, r=dimi

Differential Revision: https://phabricator.services.mozilla.com/D23104

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrea Marchesini 2019-03-14 06:32:42 +00:00
parent 587086626b
commit 69c2a0a877

View File

@ -416,7 +416,8 @@ bool FeatureData::MaybeCompleteClassification(nsIChannel* aChannel) {
return true;
}
if (nsContentUtils::IsURIInList(mBlacklistTables[0]->URI(), skipList)) {
if (!mBlacklistTables.IsEmpty() &&
nsContentUtils::IsURIInList(mBlacklistTables[0]->URI(), skipList)) {
UC_LOG(
("FeatureData::MaybeCompleteClassification[%p] - uri found in skiplist",
this));