Skip to content

Commit

Permalink
Update surrogate reference tests to only allow scripts to be surrogat…
Browse files Browse the repository at this point in the history
…es (#113)

Co-authored-by: Konrad Dzwinel <[email protected]>
  • Loading branch information
sammacbeth and kdzwinel committed Nov 8, 2023
1 parent 615e269 commit 7519c3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1011,11 +1011,18 @@
"name": "options blocking with surrogate",
"siteURL": "https://site-that-tracks.com/",
"requestURL": "https://sometimes-bad.third-party.site/surrogate-and-option-blocking-only?abc=2",
"requestType": "image",
"requestType": "script",
"expectAction": "redirect",
"expectRedirect": "data:application/javascript;base64,KGZ1bmN0aW9uKCkge3dpbmRvdy5zdXJyb2dhdGUxPXRydWV9KSgpOw==",
"expectExpression": "window.surrogate1 === true"
},
{
"name": "options blocking, wrong type",
"siteURL": "https://site-that-tracks.com/",
"requestURL": "https://sometimes-bad.third-party.site/surrogate-and-option-blocking-only?abc=2",
"requestType": "image",
"expectAction": "ignore"
},
{
"name": "require exact match for surrogates",
"siteURL": "https://random.test/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"site-that-tracks.com"
],
"types": [
"image"
"script"
]
},
"surrogate": "tracker"
Expand Down

0 comments on commit 7519c3d

Please sign in to comment.