Slightly modifying privacy-sandbox.js for completeness:
in #129, because some feature policies always returned true on the tests it was decided to remove them from any testing, this is not always the case (see https://www.lireo.com/): website owners can decide to block access to Privacy Sandbox APIs to embedded 3rd parties
this PR adds back the check for the different feature policies, but only record in custom metric when it is not allowed (along with the AllowList for that feature)
also adding a try/catch error around APIs detection just in case.
Note: the modification on feature policies is for completeness, this does not require stopping the June crawl or anything like that, just re-adding it for crawls in the future. Thanks!
Slightly modifying
privacy-sandbox.js
for completeness:Note: the modification on feature policies is for completeness, this does not require stopping the June crawl or anything like that, just re-adding it for crawls in the future. Thanks!
Test websites: