From 2d4df3de32f8e25fde0dbc9516a1e34d5fbd1f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giovanni=20Ortu=C3=B1o?= Date: Tue, 24 Sep 2024 16:39:36 +0000 Subject: [PATCH] Bug 1915538 [wpt PR 47856] - Adds a simple Navigational Tracking Mitigations test., a=testonly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-tests Adds a simple Navigational Tracking Mitigations test. (#47856) * Add Navigation Tracking Mitigations test * remove file * Address comments * clean up * address comments * no op --------- Co-authored-by: Giovanni Ortuño Urquidi -- wpt-commits: f7a3977a2c20a0f907f410bd69b24990dae9db18 wpt-pr: 47856 --- .../tests/nav-tracking-mitigations/META.yml | 9 +++ ...redirect-with-cookie-header.sub.https.html | 15 ++++ ...-with-cookie-header.sub.https.html.headers | 2 + .../cross-origin-get-cookie.sub.https.html | 5 ++ .../redirect-chain-end.sub.https.html | 10 +++ .../redirect-chain-start.sub.https.html | 18 +++++ .../stateful-client-bounce.sub.https.html | 69 +++++++++++++++++++ 7 files changed, 128 insertions(+) create mode 100644 testing/web-platform/tests/nav-tracking-mitigations/META.yml create mode 100644 testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-client-redirect-with-cookie-header.sub.https.html create mode 100644 testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-client-redirect-with-cookie-header.sub.https.html.headers create mode 100644 testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-get-cookie.sub.https.html create mode 100644 testing/web-platform/tests/nav-tracking-mitigations/resources/redirect-chain-end.sub.https.html create mode 100644 testing/web-platform/tests/nav-tracking-mitigations/resources/redirect-chain-start.sub.https.html create mode 100644 testing/web-platform/tests/nav-tracking-mitigations/stateful-client-bounce.sub.https.html diff --git a/testing/web-platform/tests/nav-tracking-mitigations/META.yml b/testing/web-platform/tests/nav-tracking-mitigations/META.yml new file mode 100644 index 000000000000..00a8c7b72a17 --- /dev/null +++ b/testing/web-platform/tests/nav-tracking-mitigations/META.yml @@ -0,0 +1,9 @@ +spec: https://privacycg.github.io/nav-tracking-mitigations/ +suggested_reviewers: + - amaliev + - bvandersloot-mozilla + - hoodjoshua + - njeunje + - rtarpine-google + - Trikolon + - wanderview diff --git a/testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-client-redirect-with-cookie-header.sub.https.html b/testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-client-redirect-with-cookie-header.sub.https.html new file mode 100644 index 000000000000..7676378a23fb --- /dev/null +++ b/testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-client-redirect-with-cookie-header.sub.https.html @@ -0,0 +1,15 @@ + + + + + diff --git a/testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-client-redirect-with-cookie-header.sub.https.html.headers b/testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-client-redirect-with-cookie-header.sub.https.html.headers new file mode 100644 index 000000000000..64415c3575b8 --- /dev/null +++ b/testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-client-redirect-with-cookie-header.sub.https.html.headers @@ -0,0 +1,2 @@ +Content-Type: text/html +Set-Cookie: example=test diff --git a/testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-get-cookie.sub.https.html b/testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-get-cookie.sub.https.html new file mode 100644 index 000000000000..50277cb28a11 --- /dev/null +++ b/testing/web-platform/tests/nav-tracking-mitigations/resources/cross-origin-get-cookie.sub.https.html @@ -0,0 +1,5 @@ + + + diff --git a/testing/web-platform/tests/nav-tracking-mitigations/resources/redirect-chain-end.sub.https.html b/testing/web-platform/tests/nav-tracking-mitigations/resources/redirect-chain-end.sub.https.html new file mode 100644 index 000000000000..54966d6efd42 --- /dev/null +++ b/testing/web-platform/tests/nav-tracking-mitigations/resources/redirect-chain-end.sub.https.html @@ -0,0 +1,10 @@ + + +Bounce Tracking Mitigations: Stateful Client Bounce (End Page) + diff --git a/testing/web-platform/tests/nav-tracking-mitigations/resources/redirect-chain-start.sub.https.html b/testing/web-platform/tests/nav-tracking-mitigations/resources/redirect-chain-start.sub.https.html new file mode 100644 index 000000000000..a1655f4483ea --- /dev/null +++ b/testing/web-platform/tests/nav-tracking-mitigations/resources/redirect-chain-start.sub.https.html @@ -0,0 +1,18 @@ + + +Bounce Tracking Mitigations: Stateful Client Bounce (Start Page) + + + diff --git a/testing/web-platform/tests/nav-tracking-mitigations/stateful-client-bounce.sub.https.html b/testing/web-platform/tests/nav-tracking-mitigations/stateful-client-bounce.sub.https.html new file mode 100644 index 000000000000..798d58fad657 --- /dev/null +++ b/testing/web-platform/tests/nav-tracking-mitigations/stateful-client-bounce.sub.https.html @@ -0,0 +1,69 @@ + + +Bounce Tracking Mitigations: Stateful Client Bounce +body for test_driver.bless + + + + +