Skip to content

Commit 7519c3d

Browse files
sammacbethkdzwinel
andauthored
Update surrogate reference tests to only allow scripts to be surrogates (#113)
Co-authored-by: Konrad Dzwinel <konrad@duckduckgo.com>
1 parent 615e269 commit 7519c3d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tracker-radar-tests/TR-domain-matching/domain_matching_tests.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,11 +1011,18 @@
10111011
"name": "options blocking with surrogate",
10121012
"siteURL": "https://site-that-tracks.com/",
10131013
"requestURL": "https://sometimes-bad.third-party.site/surrogate-and-option-blocking-only?abc=2",
1014-
"requestType": "image",
1014+
"requestType": "script",
10151015
"expectAction": "redirect",
10161016
"expectRedirect": "data:application/javascript;base64,KGZ1bmN0aW9uKCkge3dpbmRvdy5zdXJyb2dhdGUxPXRydWV9KSgpOw==",
10171017
"expectExpression": "window.surrogate1 === true"
10181018
},
1019+
{
1020+
"name": "options blocking, wrong type",
1021+
"siteURL": "https://site-that-tracks.com/",
1022+
"requestURL": "https://sometimes-bad.third-party.site/surrogate-and-option-blocking-only?abc=2",
1023+
"requestType": "image",
1024+
"expectAction": "ignore"
1025+
},
10191026
{
10201027
"name": "require exact match for surrogates",
10211028
"siteURL": "https://random.test/",

tracker-radar-tests/TR-domain-matching/tracker_radar_reference.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"site-that-tracks.com"
223223
],
224224
"types": [
225-
"image"
225+
"script"
226226
]
227227
},
228228
"surrogate": "tracker"

0 commit comments

Comments
 (0)