Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add Sec-CH-UA-Reduced client hint header when Origin Trial to…
…ken present" This reverts commit d9c057e. Reason for revert: Browser tests is failing on linux-chromeos-chrome. See [1]. [1] https://ci.chromium.org/ui/p/chrome/builders/ci/linux-chromeos-chrome/16242/overview Original change's description: > Add Sec-CH-UA-Reduced client hint header when Origin Trial token present > > In this CL, we add logic to parse and accept the Sec-CH-UA-Reduced > client hint in the Accept-CH header and and only send the > Sec-CH-UA-Reduced client hint only in the presence of a valid > UserAgentReduction Origin Trial token. > > If the Origin Trial token is present and valid, and the origin > contains Sec-CH-UA-Reduced in the Accept-CH cache, then on all > subsequent requests to the origin, the Sec-CH-UA-Reduced request > header will be set with a value of "?1" (sh-boolean). If the > Accept-CH cache does not contain Sec-CH-UA-Reduced, or the Origin > Trial token is not valid, then Sec-CH-UA-Reduced will not be sent > in the request headers. > > NB: A subsequent CL will change the User-Agent request header to > the reduced UA string if the Sec-CH-UA-Reduced header is sent. > > Chrome Platform Status: https://chromestatus.com/feature/5704553745874944 > Design Doc: https://docs.google.com/document/d/1feIxK9S7oNgT2oGGebbxE9X0O-4wTKcsP_gRaY99tq4 > > Bug: 1222742 > Change-Id: If855d4bb393540d49de3be80aa9bc7c80f861c50 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3042810 > Commit-Queue: Ali Beyad <abeyad@chromium.org> > Reviewed-by: Aaron Tagliaboschi <aarontag@chromium.org> > Reviewed-by: Robert Kroeger <rjkroege@chromium.org> > Reviewed-by: Mike West <mkwst@chromium.org> > Cr-Commit-Position: refs/heads/master@{#906810} Bug: 1222742 Change-Id: I0d8aab1d56d78f8323d4a3e3ed88b6eef370e1b9 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3061119 Auto-Submit: Daniel Hosseinian <dhoss@chromium.org> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Owners-Override: Daniel Hosseinian <dhoss@chromium.org> Cr-Commit-Position: refs/heads/master@{#906884}
- Loading branch information
Daniel Hosseinian
authored and
Chromium LUCI CQ
committed
Jul 29, 2021
1 parent
56d287c
commit f6370c3
Showing
23 changed files
with
124 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
chrome/test/data/client_hints/accept_ch_ua_reduced_missing_valid_origin_trial.html
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
.../data/client_hints/accept_ch_ua_reduced_missing_valid_origin_trial.html.mock-http-headers
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
chrome/test/data/client_hints/accept_ch_ua_reduced_with_invalid_origin_trial.html
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...t/data/client_hints/accept_ch_ua_reduced_with_invalid_origin_trial.html.mock-http-headers
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
chrome/test/data/client_hints/accept_ch_ua_reduced_with_no_origin_trial.html
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...e/test/data/client_hints/accept_ch_ua_reduced_with_no_origin_trial.html.mock-http-headers
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
chrome/test/data/client_hints/accept_ch_ua_reduced_with_valid_origin_trial.html
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...est/data/client_hints/accept_ch_ua_reduced_with_valid_origin_trial.html.mock-http-headers
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
chrome/test/data/client_hints/critical_ch_ua_reduced_with_invalid_origin_trial.html
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...data/client_hints/critical_ch_ua_reduced_with_invalid_origin_trial.html.mock-http-headers
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
chrome/test/data/client_hints/critical_ch_ua_reduced_with_valid_origin_trial.html
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...t/data/client_hints/critical_ch_ua_reduced_with_valid_origin_trial.html.mock-http-headers
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.