Bug 1548486 - Set tracking info in fingerprinting annotation & cryptoming annotation. r=baku
authordlee <dlee@mozilla.com>
Thu, 02 May 2019 16:06:56 +0000
changeset 472678 eb990c2653e061801885f4546e8da756a8464873
parent 472657 dcdecf563747b29b8bd7270937d190e967b3ea50
child 472679 c92e192e8fe4e7af7fde967d248754c9c6161652
push id113042
push useropoprus@mozilla.com
push dateMon, 06 May 2019 22:36:56 +0000
treeherdermozilla-inbound@a52b0d5b0f94 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1548486
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1548486 - Set tracking info in fingerprinting annotation & cryptoming annotation. r=baku The enable channels classified by these two features contain tracker's hash value. Differential Revision: https://phabricator.services.mozilla.com/D29647
netwerk/url-classifier/UrlClassifierFeatureCryptominingAnnotation.cpp
netwerk/url-classifier/UrlClassifierFeatureFingerprintingAnnotation.cpp
--- a/netwerk/url-classifier/UrlClassifierFeatureCryptominingAnnotation.cpp
+++ b/netwerk/url-classifier/UrlClassifierFeatureCryptominingAnnotation.cpp
@@ -142,16 +142,18 @@ UrlClassifierFeatureCryptominingAnnotati
            nsIHttpChannel::ClassificationFlags::
                CLASSIFIED_CRYPTOMINING_CONTENT},
       };
 
   uint32_t flags = UrlClassifierCommon::TablesToClassificationFlags(
       aList, sClassificationData,
       nsIHttpChannel::ClassificationFlags::CLASSIFIED_CRYPTOMINING);
 
+  UrlClassifierCommon::SetTrackingInfo(aChannel, aList, aHashes);
+
   UrlClassifierCommon::AnnotateChannel(
       aChannel, AntiTrackingCommon::eCryptomining, flags,
       nsIWebProgressListener::STATE_LOADED_CRYPTOMINING_CONTENT);
   return NS_OK;
 }
 
 NS_IMETHODIMP
 UrlClassifierFeatureCryptominingAnnotation::GetURIByListType(
--- a/netwerk/url-classifier/UrlClassifierFeatureFingerprintingAnnotation.cpp
+++ b/netwerk/url-classifier/UrlClassifierFeatureFingerprintingAnnotation.cpp
@@ -144,16 +144,18 @@ UrlClassifierFeatureFingerprintingAnnota
            nsIHttpChannel::ClassificationFlags::
                CLASSIFIED_FINGERPRINTING_CONTENT},
       };
 
   uint32_t flags = UrlClassifierCommon::TablesToClassificationFlags(
       aList, sClassificationData,
       nsIHttpChannel::ClassificationFlags::CLASSIFIED_FINGERPRINTING);
 
+  UrlClassifierCommon::SetTrackingInfo(aChannel, aList, aHashes);
+
   UrlClassifierCommon::AnnotateChannel(
       aChannel, AntiTrackingCommon::eFingerprinting, flags,
       nsIWebProgressListener::STATE_LOADED_FINGERPRINTING_CONTENT);
 
   return NS_OK;
 }
 
 NS_IMETHODIMP