commit 957237b74db77a39f38fd22bf77c33ec386edfac parent d3b06051c0e247c4799f0c5c82825eb971ec7db1 Author: Kevin Graney <kmg@google.com> Date: Thu, 20 Nov 2025 09:54:42 +0000 Bug 2001170 [wpt PR 56120] - Remove cookie deprecation label code, a=testonly Automatic update from web-platform-tests Remove cookie deprecation label code Traffic labels: - Disabled via Finch in M142 - Disabled in binary by default in M143 - Code removal in M144 (next branch) See https://chromestatus.com/feature/5189079788683264. Some additional context is in these threads: https://groups.google.com/a/chromium.org/g/blink-dev/c/WnIy9TTDXpk/m/66Xio4YGDAAJ https://groups.google.com/a/chromium.org/g/blink-dev/c/63u-0KmBG4w/m/nhIsSbLfAwAJ Bug: 447619585 Change-Id: I04ab2c2973befcfcf669550c87269f49023ea80b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7155846 Reviewed-by: mmenke <mmenke@chromium.org> Reviewed-by: Joshua Hood <jdh@chromium.org> Commit-Queue: Kevin Graney <kmg@google.com> Cr-Commit-Position: refs/heads/main@{#1547313} -- wpt-commits: 5dc44419b11d43bc1da54a2306276e406ead3581 wpt-pr: 56120 Diffstat:
4 files changed, 0 insertions(+), 52 deletions(-)
diff --git a/testing/web-platform/tests/cookie-deprecation-label/cookie-deprecation-label-detached-iframe.https.html b/testing/web-platform/tests/cookie-deprecation-label/cookie-deprecation-label-detached-iframe.https.html @@ -1,31 +0,0 @@ -<!doctype html> -<script src=/resources/testharness.js></script> -<script src=/resources/testharnessreport.js></script> -<body> -<script> - promise_test(async t => { - let label = await navigator.cookieDeprecationLabel.getValue(); - assert_equals(label, 'label_test'); - - const iframe = document.createElement('iframe'); - iframe.src = "dummy.html"; - const iframeLoadedPromise = new Promise(resolve => { - iframe.addEventListener('load', resolve, { once: true }); - document.body.append(iframe); - }); - await iframeLoadedPromise; - - const iframeNavigator = iframe.contentWindow.navigator; - let iframeLabel = await iframeNavigator.cookieDeprecationLabel.getValue(); - assert_equals(iframeLabel, 'label_test'); - - iframe.parentNode.removeChild(iframe); - - label = await navigator.cookieDeprecationLabel.getValue(); - assert_equals(label, 'label_test'); - - iframeLabel = await iframeNavigator.cookieDeprecationLabel.getValue(); - assert_equals(iframeLabel, ''); - }, 'Test navigator.cookieDeprecationLabel behavior in detached iframes'); -</script> -</body> -\ No newline at end of file diff --git a/testing/web-platform/tests/cookie-deprecation-label/cookie-deprecation-label-insecure-context.http.html b/testing/web-platform/tests/cookie-deprecation-label/cookie-deprecation-label-insecure-context.http.html @@ -1,8 +0,0 @@ -<!doctype html> -<script src=/resources/testharness.js></script> -<script src=/resources/testharnessreport.js></script> -<script> - test(() => { - assert_equals(navigator.cookieDeprecationLabel, undefined); - }, 'Test navigator.cookieDeprecationLabel in insecure context'); -</script> diff --git a/testing/web-platform/tests/cookie-deprecation-label/cookie-deprecation-label.https.html b/testing/web-platform/tests/cookie-deprecation-label/cookie-deprecation-label.https.html @@ -1,9 +0,0 @@ -<!doctype html> -<script src=/resources/testharness.js></script> -<script src=/resources/testharnessreport.js></script> -<script> - promise_test(async t => { - let label = await navigator.cookieDeprecationLabel.getValue(); - assert_equals(label, 'label_test'); - }, 'Test navigator.cookieDeprecationLabel.getValue()'); -</script> diff --git a/testing/web-platform/tests/cookie-deprecation-label/dummy.html b/testing/web-platform/tests/cookie-deprecation-label/dummy.html @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<title>Dummy page</title> -\ No newline at end of file