Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"expectAction": "block"
},
{
"name": "uncloacked tracker should contain original path and be checked against the ignore rules",
"name": "uncloaked tracker should contain original path and be checked against the ignore rules",
"siteURL": "https://randomsite123.com/",
"requestURL": "https://bad.cnames.test/breakage",
"requestType": "script",
Expand Down Expand Up @@ -219,6 +219,27 @@
"ios-browser",
"web-extension-mv3"
]
},
{
"name": "unknown site default action results in default behavior",
"siteURL": "https://random678.site/",
"requestURL": "https://unknown-action.site/",
"requestType": "script",
"expectAction": "ignore"
},
{
"name": "unknown rule action results in default ignore behavior",
"siteURL": "https://random.test/",
"requestURL": "action.ignore.test/tracker",
"requestType": "script",
"expectAction": null
},
{
"name": "unknown rule action results in default block behavior",
"siteURL": "https://random678.site/",
"requestURL": "https://tracker.test/new-new-thing/",
"requestType": "script",
"expectAction": "block"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
{
"action": "ignore",
"rule": "tracker\\.test\\/breakage"
},
{
"rule": "tracker\\.test\\/new-new-thing",
"action": "ignore-unknown-action"
}
]
},
Expand All @@ -82,6 +86,10 @@
"rules": [
{
"rule": "ignore\\.test\\/tracker"
},
{
"rule": "action\\.ignore\\.test\\/tracker",
"action": "ignore-unknown-action"
}
]
},
Expand Down Expand Up @@ -138,6 +146,21 @@
}
],
"default": "block"
},
"unknown-action.site": {
"domain": "unknown-action.site",
"owner": {
"name": "Test Site for Tracker Blocking",
"displayName": "Ignore unknown actions",
"privacyPolicy": "",
"url": "http://unknown-action.site"
},
"prevalence": 0.1,
"fingerprinting": 3,
"cookies": 0.1,
"categories": [],
"rules": [],
"default": "ignore-unknown-action"
}
},
"entities": {
Expand All @@ -154,7 +177,8 @@
"Ignore Site for Tracker Blocking": {
"domains": [
"ignore.test",
"sub.ignore.test"
"sub.ignore.test",
"unknown-action.site"
],
"prevalence": 0.1,
"displayName": "Ignore Site for Tracker Blocking"
Expand Down Expand Up @@ -183,6 +207,7 @@
"sub.ignore.test": "Ignore Site for Tracker Blocking",
"surrogates.test": "Test Site for Surrogates",
"other-surrogates.test": "Test Site for Surrogates",
"blockedsurrogates.test": "Test Site for Surrogates"
"blockedsurrogates.test": "Test Site for Surrogates",
"unknown-action.site": "Ignore Site for Tracker Blocking"
}
}