From 8648c0beaab6a46f2ea835f80763613b69cbce5d Mon Sep 17 00:00:00 2001 From: Tsuyoshi Horo Date: Tue, 14 May 2024 08:30:00 -0700 Subject: [PATCH] Revert "Add WPT coverage of Sec-CH-Width" This reverts commit 4c824962ce299958d6ca2efccfac5bb8761b8756. Reason for revert: Failing on chromium/ci/WebKit Linux MSAN bot. Bug: 340364700 Original change's description: > Add WPT coverage of Sec-CH-Width > > This patch adds WPT coverage of Sec-CH-Width: > https://wicg.github.io/responsive-image-client-hints/#sec-ch-width > > Bug: 335630145 > Change-Id: I329d39c8d0d259e9226e64468a083513c555322b > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5523418 > Reviewed-by: Traian Captan > Commit-Queue: Philip Rogers > Cr-Commit-Position: refs/heads/main@{#1300292} Bug: 335630145 Change-Id: Idd61c07047bc75818c731e773c1119eb03078c82 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5535073 Bot-Commit: Rubber Stamper Reviewed-by: Traian Captan Commit-Queue: Tsuyoshi Horo Cr-Commit-Position: refs/heads/main@{#1300416} --- .../2x3-svg-scaled-by-sec-ch-width.py | 22 ------------------- client-hints/sec-ch-width.https.html | 18 --------------- 2 files changed, 40 deletions(-) delete mode 100644 client-hints/resources/2x3-svg-scaled-by-sec-ch-width.py delete mode 100644 client-hints/sec-ch-width.https.html diff --git a/client-hints/resources/2x3-svg-scaled-by-sec-ch-width.py b/client-hints/resources/2x3-svg-scaled-by-sec-ch-width.py deleted file mode 100644 index d53574c361213d..00000000000000 --- a/client-hints/resources/2x3-svg-scaled-by-sec-ch-width.py +++ /dev/null @@ -1,22 +0,0 @@ -def main(request, response): - """ - Simple handler that responds with an SVG image with width `2 * sec-ch-width` - and height `3 * sec-ch-width`, or 1x1 if sec-ch-width is not present. - """ - - width = 1 - height = 1 - - if b"sec-ch-width" in request.headers: - sec_ch_width = request.headers.get(b"sec-ch-width").decode() - width = 2 * int(sec_ch_width) - height = 3 * int(sec_ch_width) - - response.headers.set(b"Content-Type", b"image/svg+xml") - response.content = str.encode(f""" - - """) diff --git a/client-hints/sec-ch-width.https.html b/client-hints/sec-ch-width.https.html deleted file mode 100644 index f44fa3bb5e1c6f..00000000000000 --- a/client-hints/sec-ch-width.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -Tests Sec-CH-Width - - - - - - -