commit | 203c30248db0dc01c52429ea2664a139396f2203 | [log] [tgz] |
---|---|---|
author | Hayato Ito <hayato@chromium.org> | Mon Dec 11 04:58:57 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Dec 11 04:58:57 2023 |
tree | bf8e9d994732340e65a0806140ccb21fc2399bcc | |
parent | 87aa0ed4bd184608e7b9eae1ccf8e936b18d7d16 [diff] |
[URL] Canonicalize hosts in non special URLs This CL, separate from the main CL (https://crrev.com/c/4929491), adds several functions to canonicalize hosts in non-special URLs, implementing the following URL Standard sections: - https://url.spec.whatwg.org/#host-parsing - https://url.spec.whatwg.org/#concept-opaque-host-parser The newly added functions are currently unused and will be used in following CLs. Thus, guarding these functions by the flag is unnecessary at this point. Tests: This CL adds minimal unit tests for CanonicalizeNonSpecialHost(...) functions. These tests should be sufficient to verify the basic behavior of the canonicalization functions. The WPT URL tests have a good coverage for non-special URLs and will be used in following CLs. Bug: 1416006 Change-Id: I762053754bcf3417e277e660a9d83833573ddb2c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5092012 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Hayato Ito <hayato@chromium.org> Cr-Commit-Position: refs/heads/main@{#1235585}
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.