Skip to content

Commit

Permalink
Update fingerprint tests for apple devices (#66)
Browse files Browse the repository at this point in the history
* Update fingerprinting tests with apple exceptions

https://app.asana.com/0/0/1203509118401613/f

* Remove unnecessary commas

* Extra comma

* Update fingerprint tests for apple devices

https://app.asana.com/0/0/1203509118401613/f

* Add function back

* Remove extra line

* Update readme with webkit info
  • Loading branch information
Bunn authored Dec 13, 2022
1 parent 0945241 commit 74c177d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
1 change: 1 addition & 0 deletions fingerprinting-protections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ for $testSet in test.json

- "ports are ignored when matching rules" disabled for web extensions ([bug report](https://app.asana.com/0/892838074342800/1201806214352982/f))
- Subdomains of CNAME entries are so far matched for Chrome MV3 ([bug report](https://app.asana.com/0/1200940319964997/1202246325586612/f))
- Webkit based platforms don't support Battery API, `navigator.keyboard` and `navigator.webkitTemporaryStorage`.
50 changes: 40 additions & 10 deletions fingerprinting-protections/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,50 @@
"siteURL": "https://example.com/",
"property": "navigator.getBattery().then(battery => battery.charging)",
"expectPropertyValue": "true",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
},
{
"name": "chargingTime property",
"siteURL": "https://example.com/",
"property": "navigator.getBattery().then(battery => battery.chargingTime)",
"expectPropertyValue": "0",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
},
{
"name": "dischargingTime property",
"siteURL": "https://example.com/",
"property": "navigator.getBattery().then(battery => battery.dischargingTime)",
"expectPropertyValue": "Infinity",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
},
{
"name": "chargingTime property - local exception",
"siteURL": "https://battery-exception.test/",
"property": "navigator.getBattery().then(battery => battery.chargingTime)",
"expectPropertyValue": "12345",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
},
{
"name": "chargingTime property - global exception",
"siteURL": "https://global-exception.test",
"property": "navigator.getBattery().then(battery => battery.chargingTime)",
"expectPropertyValue": "12345",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
}
]
},
Expand All @@ -49,14 +64,20 @@
"siteURL": "https://example.com/",
"property": "navigator.keyboard",
"expectPropertyValue": "undefined",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
},
{
"name": "keyboard property - prototype access",
"siteURL": "https://example.com/",
"property": "Navigator.prototype.keyboard",
"expectPropertyValue": "undefined",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
},
{
"name": "hardwareConcurrency property",
Expand Down Expand Up @@ -215,21 +236,30 @@
"siteURL": "https://example.com/",
"property": "new Promise(resolve => {navigator.webkitTemporaryStorage.queryUsageAndQuota((used, granted) => resolve(granted))})",
"expectPropertyValue": "4294967296",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
},
{
"name": "queryUsageAndQuota granted space value - global exception",
"siteURL": "https://tempstorage-exception.test/path/file.html",
"property": "new Promise(resolve => {navigator.webkitTemporaryStorage.queryUsageAndQuota((used, granted) => resolve(granted))})",
"expectPropertyValue": "9999999999",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
},
{
"name": "queryUsageAndQuota granted space value - global exception",
"siteURL": "https://global-exception.test/path/file.html",
"property": "new Promise(resolve => {navigator.webkitTemporaryStorage.queryUsageAndQuota((used, granted) => resolve(granted))})",
"expectPropertyValue": "9999999999",
"exceptPlatforms": []
"exceptPlatforms": [
"ios-browser",
"macos-browser"
]
}
]
}
Expand Down

0 comments on commit 74c177d

Please sign in to comment.