Skip to content

Commit

Permalink
Bug 1731321 [wpt PR 30781] - [Re-Factor Client Hints] (5) Remove (unl…
Browse files Browse the repository at this point in the history
…aunched) `lang` client hint, a=testonly

Automatic update from web-platform-tests
[Re-Factor Client Hints] (5) Remove (unlaunched) `lang` client hint (#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]>
--

wpt-commits: 1691e2c6a184e2eff0a5c29b22b82aaa01840f9f
wpt-pr: 30781
  • Loading branch information
chromium-wpt-export-bot authored and moz-wptsync-bot committed Oct 2, 2021
1 parent b4281fe commit e8b7f01
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
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
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
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
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 e8b7f01

Please sign in to comment.