Bug 1546884 - fix third-party channel checks; r=dragana

`mThirdPartyClassificationFlags` can only check for third-party tracking channel, it should be checked by calling `IsThirdPartyWindowOrChannel`.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Liang-Heng Chen 2019-04-26 09:29:07 +00:00
Родитель ed8100d1c1
Коммит bed04f7f7b
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1333,7 +1333,8 @@ HttpTrafficCategory nsHttpChannel::CreateTrafficCategory() {
}
}
bool isThirdParty = !!mThirdPartyClassificationFlags;
bool isThirdParty =
nsContentUtils::IsThirdPartyWindowOrChannel(nullptr, this, mURI);
HttpTrafficAnalyzer::TrackingClassification tc;
{
uint32_t flags = isThirdParty ? mThirdPartyClassificationFlags