Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly modifying privacy-sandbox.js and how featurePolicies are checked #131

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Slightly modifying privacy-sandbox.js and how featurePolicies are checked #131

merged 1 commit into from
Jun 12, 2024

Conversation

yohhaan
Copy link
Member

@yohhaan yohhaan commented Jun 12, 2024

Slightly modifying privacy-sandbox.js for completeness:

  • in Adding Privacy Sandbox APIs #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!


Test websites:

…if not record the AllowList, also add a try/catch error around APIs detection just in case
Copy link

Custom metrics for https://almanac.httparchive.org/en/2022/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_1V_19

Custom metrics for https://example.com/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_AA_1A
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": []
    }
}
Custom metrics for https://www.lireo.com/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_HR_1B
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "browsing-topics": []
            },
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": []
    }
}
Custom metrics for https://www.operafootball.com/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_MH_1C
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": {
            "securepubads.g.doubleclick.net": [
                "runAdAuction",
                "navigator.userAgentData.getHighEntropyValues",
                "fencedFrameJs",
                "sec-browsing-topics|false",
                "attribution-reporting-eligible"
            ],
            "pagead2.googlesyndication.com": [
                "runAdAuction",
                "navigator.userAgentData.getHighEntropyValues",
                "joinAdInterestGroup"
            ],
            "googleads.g.doubleclick.net": [
                "sec-browsing-topics|true",
                "sec-browsing-topics|false",
                "navigator.userAgentData.getHighEntropyValues"
            ],
            "fundingchoicesmessages.google.com": [
                "accept-ch|Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Model, Sec-CH-UA-WoW64, Sec-CH-UA-Form-Factor, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version"
            ],
            "www.googletagmanager.com": [
                "joinAdInterestGroup",
                "navigator.userAgentData.getHighEntropyValues"
            ],
            "cdn.ampproject.org": [
                "reportWin"
            ],
            "www.gstatic.com": [
                "navigator.userAgentData.getHighEntropyValues"
            ],
            "www.googleadservices.com": [
                "attribution-reporting-eligible",
                "attribution-reporting-register-source|destination=https://yahoo.com|epsilon=undefined",
                "attribution-reporting-register-source|destination=https://fubo.tv|epsilon=undefined",
                "privateAggregation.enableDebugMode"
            ],
            "yandex.ru": [
                "accept-ch|Sec-CH-UA-Platform-Version, Sec-CH-UA-Mobile, Sec-CH-UA-Model, Sec-CH-UA, Sec-CH-UA-Full-Version-List, Sec-CH-UA-WoW64, Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Platform, Sec-CH-UA-Full-Version, Viewport-Width, DPR, Device-Memory, RTT, Downlink, ECT"
            ]
        }
    }
}
Custom metrics for https://floc.glitch.me/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_6Y_1D
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": {
            "floc.glitch.me": [
                "document.interestCohort"
            ]
        }
    }
}
Custom metrics for https://pets-animals-pets-cats.glitch.me/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_BH_1E
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": {
            "pets-animals-pets-cats.glitch.me": [
                "document.browsingTopics|false"
            ],
            "topics-demo.glitch.me": [
                "document.browsingTopics|false"
            ]
        }
    }
}
Custom metrics for https://tennis-tennis.glitch.me/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_AJ_1F
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": {
            "tennis-tennis.glitch.me": [
                "document.browsingTopics|true"
            ],
            "topics-server.glitch.me": [
                "sec-browsing-topics|false"
            ]
        }
    }
}
Custom metrics for https://protected-audience-demo-advertiser.web.app/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_T5_1G
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": {
            "protected-audience-demo-dsp.web.app": [
                "joinAdInterestGroup"
            ]
        }
    }
}
Custom metrics for https://protected-audience-demo-publisher.web.app/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_ZA_1H
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": {
            "protected-audience-demo-ssp.web.app": [
                "runAdAuction"
            ]
        }
    }
}
Custom metrics for https://fedcm-rp-demo.glitch.me/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_KW_1J
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": {
            "fedcm-idp-demo.glitch.me": [
                "navigator.credentials.get"
            ]
        }
    }
}
Custom metrics for https://fedcm-idp-demo.glitch.me/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240612_JE_1K
Changed custom metrics values:

{
    "_privacy-sandbox": {
        "featuresDisabled": [
            {
                "top-level-storage-access": []
            }
        ],
        "privacySandBoxAPIUsage": {
            "fedcm-idp-demo.glitch.me": [
                "navigator.credentials.get",
                "IdentityProvider.getUserInfo"
            ]
        }
    }
}

@tunetheweb tunetheweb merged commit b0a4982 into HTTPArchive:main Jun 12, 2024
2 checks passed
@yohhaan yohhaan deleted the privacy-sandbox.js-2024 branch June 12, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants