Skip to content

Commit

Permalink
Added a test that validates that, when Tracker is defined for a eTLD+…
Browse files Browse the repository at this point in the history
…2 domain (e.g. bad.etld-plus-two.site), tracker requests are correctly Ignored
  • Loading branch information
RendijsSmukulis committed Sep 26, 2024
1 parent 6133e7d commit d285262
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
"requestURL": "https://ignore.test/",
"requestType": "script",
"expectAction": "ignore"
},
{
"name": "same party ignore with deeper subdomain",
"siteURL": "https://bad.etld-plus-two.site/",
"requestURL": "https://bad.etld-plus-two.site/script.js",
"requestType": "script",
"expectAction": "ignore"
},
{
"name": "tracker loads ignore",
Expand Down Expand Up @@ -1077,7 +1084,7 @@
"expectAction": "redirect",
"expectRedirect": "data:application/javascript;base64,KGZ1bmN0aW9uKCkge3dpbmRvdy5zdXJyb2dhdGUxPXRydWV9KSgpOw==",
"expectExpression": "window.surrogate1 === true"
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,21 @@
"rules": [],
"default": "ignore"
},
"bad.etld-plus-two.site": {
"domain": "bad.etld-plus-two.site",
"owner": {
"name": "Test Site for Tracker Blocking With eTLD+2",
"displayName": "Bad Third Party Site eTLD+2",
"privacyPolicy": "",
"url": "http://bad.etld-plus-two.site"
},
"prevalence": 0.1,
"fingerprinting": 3,
"cookies": 0.1,
"categories": [],
"default": "block",
"rules": []
},
"tracker.test": {
"domain": "tracker.test",
"owner": {
Expand Down Expand Up @@ -819,6 +834,13 @@
"prevalence": 0.1,
"displayName": "Test Site for Tracker Blocking"
},
"Test Site for Tracker Blocking With eTLD+2": {
"domains": [
"bad.etld-plus-two.site"
],
"prevalence": 0.1,
"displayName": "Bad Third Party Site eTLD+2"
},
"Tests for formatting": {
"domains": [
"format.test"
Expand Down Expand Up @@ -876,6 +898,7 @@
"bad.third-party.site": "Test Site for Tracker Blocking",
"sometimes-bad.third-party.site": "Test Site for Tracker Blocking",
"broken.third-party.site": "Test Site for Tracker Blocking",
"bad.etld-plus-two.site": "Test Site for Tracker Blocking With eTLD+2",
"format.test": "Tests for formatting",
"third-party.site": "Test Site for Tracker Blocking",
"tracker.test": "Test Site for Tracker Blocking",
Expand Down

0 comments on commit d285262

Please sign in to comment.