privacytests / privacytests.org

Source code for privacytests.org. Includes browser testing code and site rendering.
https://privacytests.org
MIT License
797 stars 23 forks source link

tests no. 43: TB font cache partitioning #153

Open Thorin-Oakenpants opened 1 year ago

Thorin-Oakenpants commented 1 year ago

Hey @arthuredelstein , I noticed in tests no. 43, that desktop TB fails the font cache partitioning, but PB mode doesn't.

Just want to clarify that TB is always run in PB mode - and that you just wanted to have tor as a compassion in each set. If that's the case, then wondering why the test failed

fails on the second font (of four) by the looks of it

read: async (key) => { let style = document.createElement("style"); style.type='text/css'; let fontURI = testURI("resource", "font", key); style.innerHTML = @font-face {font-family: "myFont"; src: url("${fontURI}"); } body { font-family: "myFont" }; document.getElementsByTagName("head")[0].appendChild(style); await sleepMs(500); let response = await fetch( testURI("ctr", "font", key), {"cache": "reload"}); return (await response.text()).trim(); }

result, same first party: 1, 1, 1, 1

result, different first party: 2, 1, 2, 2

unsupported: false, false, false, false

passed: true, false, true, true

test failed: false, false, false, false