commit | 417487aa1a74505443dd9753236c61a0cb4afdae | [log] [tgz] |
---|---|---|
author | Andreea Costinas <acostinas@google.com> | Thu Jan 25 09:46:21 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 25 09:46:21 2024 |
tree | 290dfedd43a38935299dd04f6094c946b1e0ccd5 | |
parent | f437364cd6d1c20fcefc63b6c5026b5d8723cc97 [diff] |
Always replace device placeholders in DoH URI templates Currently, if the DoH URI template contains placeholders for device identifiers these placeholders are ignored for unaffiliated users. This is incorrect because the template delimiters are not URL encoded and it breaks the DoH server assumptions regarding the size of the identifier replacement. This CL changes the current logic by hashing and hex encoding the value of the placeholder name for users which are not affiliated. E.g. the replacement for ${DEVICE_ASSET_ID} is uppercase_hex(sha256(VALUE_NOT_AVAILABLE)). Bug: b/315422225 Change-Id: If142d012b11379a9c44aa71389463c43609736ae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5211015 Reviewed-by: Pavol Marko <pmarko@chromium.org> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Commit-Queue: Andreea Costinas <acostinas@google.com> Cr-Commit-Position: refs/heads/main@{#1251974}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.