Bug 1773695 - Part 4: Add email tracking flags to webrequest. r=mixedpuppy

Differential Revision: https://phabricator.services.mozilla.com/D151151
This commit is contained in:
Tim Huang 2022-07-18 21:48:16 +00:00
Родитель 9fcc3e7f44
Коммит d33b3438a7
3 изменённых файлов: 6 добавлений и 1 удалений

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

@ -44,6 +44,8 @@ enum MozUrlClassificationFlags {
"fingerprinting_content",
"cryptomining",
"cryptomining_content",
"emailtracking",
"emailtracking_content",
"tracking",
"tracking_ad",
"tracking_analytics",

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

@ -352,7 +352,8 @@
"id": "UrlClassificationFlags",
"type": "string",
"enum": ["fingerprinting", "fingerprinting_content", "cryptomining", "cryptomining_content",
"tracking", "tracking_ad", "tracking_analytics", "tracking_social", "tracking_content",
"emailtracking", "emailtracking_content", "tracking", "tracking_ad",
"tracking_analytics", "tracking_social", "tracking_content",
"any_basic_tracking", "any_strict_tracking", "any_social_tracking"],
"description": "Tracking flags that match our internal tracking classification"
},

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

@ -63,6 +63,8 @@ static const ClassificationStruct classificationArray[] = {
{CF::CLASSIFIED_FINGERPRINTING_CONTENT, MUC::Fingerprinting_content},
{CF::CLASSIFIED_CRYPTOMINING, MUC::Cryptomining},
{CF::CLASSIFIED_CRYPTOMINING_CONTENT, MUC::Cryptomining_content},
{CF::CLASSIFIED_EMAILTRACKING, MUC::Emailtracking},
{CF::CLASSIFIED_EMAILTRACKING_CONTENT, MUC::Emailtracking_content},
{CF::CLASSIFIED_TRACKING, MUC::Tracking},
{CF::CLASSIFIED_TRACKING_AD, MUC::Tracking_ad},
{CF::CLASSIFIED_TRACKING_ANALYTICS, MUC::Tracking_analytics},