commit | f79b3bae327fee2d365d8e2e3a9d8b937d86608c | [log] [tgz] |
---|---|---|
author | Rob Wu <rob@robwu.nl> | Sun Jan 14 01:54:31 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Sun Jan 14 01:54:31 2018 |
tree | a8811514b46161b5206d44aa6e4bccdbcf35b710 | |
parent | 462ca4d55b56fa45f85ec613e73d3e52d306b82d [diff] |
Rename IsLocalhost(host) to HostStringIsLocalhost(host); add IsLocalhost(GURL) Several call sites incorrectly used GURL::host or GURL::host_piece as an argument to net::IsLocalhost. This function only expects IPv6 addresses without brackets. Since the vast majority of the callers start off with a GURL, change net::IsLocalhost(StringPiece) to net::IsLocalhost(GURL). For callers that do not have a GURL, and only a host name (e.g. Blink code), net::HostStringIsLocalhost is added (which behaves like the old net::IsLocalhost). BUG=797778 TEST=Start Chrome with --allow-insecure-localhost, visit https://[::1]/ and confirm that the site loads without intersitial. Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: Ibb1cbf3f061ea2070d5e479ac4119a813a7e98a7 Reviewed-on: https://chromium-review.googlesource.com/844777 Commit-Queue: Rob Wu <rob@robwu.nl> Reviewed-by: Eric Roman <eroman@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#529180}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .