Skip to content

Commit

Permalink
[Re-Factor Client Hints] (5) Remove (unlaunched) lang client hint (w…
Browse files Browse the repository at this point in the history
…eb-platform-tests#30781)

Now that we've cleaned up the array indexing that was blocking this,
let's move forward with removing this unused client hint.

This is a part of a series of CLs to re-factor the client hints code:
(1) Label hints with legacy names
(2) Fix the naming of (unlaunched) `lang` client hint
(3) Consolidate client hint name lists
(4) Migrate from array to map indexing for client hint names
(5) Remove (unlaunched) `lang` client hint

Bug: 1227043
Change-Id: I57404516cd1f39f738f0fbd7c202de7adf063d98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3160286
Auto-Submit: Ari Chivukula <[email protected]>
Commit-Queue: Matt Falkenhagen <[email protected]>
Reviewed-by: Matt Falkenhagen <[email protected]>
Reviewed-by: David Dorwin <[email protected]>
Reviewed-by: Yoav Weiss <[email protected]>
Reviewed-by: Dominick Ng <[email protected]>
Cr-Commit-Position: refs/heads/main@{#921893}

Co-authored-by: Ari Chivukula <[email protected]>
  • Loading branch information
2 people authored and Gabisampaio committed Nov 18, 2021
1 parent 3e5703a commit 50ac417
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion client-hints/accept-ch-cache-revalidation.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"rtt",
"downlink",
"ect",
"lang",
"sec-ch-ua",
"sec-ch-ua-arch",
"sec-ch-ua-platform",
Expand Down
3 changes: 1 addition & 2 deletions client-hints/http-equiv-accept-ch-merge.https.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<html>
<head>
<meta http-equiv="Accept-CH" content="viewport-width, rtt">
<meta http-equiv="Accept-CH" content="downlink, ect, lang, sec-ch-prefers-color-scheme">
<meta http-equiv="Accept-CH" content="downlink, ect, sec-ch-prefers-color-scheme">
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
Expand All @@ -19,7 +19,6 @@
// Verify that the browser includes client hints in the headers.
assert_true(r.headers.has("device-memory-received"), "device-memory-received");
assert_true(r.headers.has("dpr-received"), "dpr-received");
assert_true(r.headers.has("lang-received"), "lang-received");
assert_true(r.headers.has("viewport-width-received"), "viewport-width-received");

assert_true(r.headers.has("rtt-received"), "rtt-received");
Expand Down
2 changes: 0 additions & 2 deletions client-hints/resources/echo-client-hints-received.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ def main(request, response):
response.headers.set(b"downlink-received", request.headers.get(b"downlink"))
if b"ect" in request.headers:
response.headers.set(b"ect-received", request.headers.get(b"ect"))
if b"Lang" in request.headers:
response.headers.set(b"lang-received", request.headers.get(b"Lang"))
if b"sec-ch-ua-mobile" in request.headers:
response.headers.set(b"mobile-received", request.headers.get(b"sec-ch-ua-mobile"))
if b"sec-ch-prefers-color-scheme" in request.headers:
Expand Down
1 change: 0 additions & 1 deletion client-hints/resources/stale-echo-client-hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def main(request, response):
b"rtt",
b"downlink",
b"ect",
b"lang",
b"sec-ch-ua",
b"sec-ch-ua-arch",
b"sec-ch-ua-platform",
Expand Down

0 comments on commit 50ac417

Please sign in to comment.