Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Issue 938093003: Always treat .localhost as loopback (Closed)

Created:
5 years, 10 months ago by estark
Modified:
5 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke, Ryan Sleevi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Always treat .localhost as loopback This means that .localhost is always redirected to localhost in DNS lookups, and |net::IsLocalhost| returns true for .localhost hostnames. BUG=455825 Committed: https://crrev.com/5d131a1fd9b808c5fd08c45f8299e669b13ec393 Cr-Commit-Position: refs/heads/master@{#322452}

Patch Set 1 #

Patch Set 2 : add comments #

Total comments: 8

Patch Set 3 : rsleevi's comments #

Total comments: 3

Patch Set 4 : move localhost rewriting up to HostResolverImpl #

Total comments: 6

Patch Set 5 : rsleevi's comments #

Total comments: 4

Patch Set 6 : rebase #

Patch Set 7 : move constants, add a test case, style fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -6 lines) Patch
M net/base/net_util.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/net_util.cc View 1 2 3 4 5 6 2 chunks +21 lines, -4 lines 2 comments Download
M net/base/net_util_unittest.cc View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 1 2 3 4 3 chunks +16 lines, -2 lines 0 comments Download
M net/dns/host_resolver_impl_unittest.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
estark
rsleevi@, could you please take a look and help me figure out if this is ...
5 years, 10 months ago (2015-02-19 18:28:35 UTC) #2
Ryan Sleevi
I'm pretty sure Thomas is the DNS expert these days, probably best to have him ...
5 years, 10 months ago (2015-02-19 22:24:56 UTC) #4
estark
thanks rsleevi! https://codereview.chromium.org/938093003/diff/20001/net/base/net_util.cc File net/base/net_util.cc (right): https://codereview.chromium.org/938093003/diff/20001/net/base/net_util.cc#newcode1021 net/base/net_util.cc:1021: bool IsLocalhostTLD(const std::string& host) { On 2015/02/19 ...
5 years, 10 months ago (2015-02-20 01:55:19 UTC) #5
estark
ttuttle, do you think you could take a look when you have a chance? thanks!
5 years, 10 months ago (2015-02-23 18:47:07 UTC) #6
Deprecated (see juliatuttle)
On 2015/02/23 18:47:07, emily wrote: > ttuttle, do you think you could take a look ...
5 years, 10 months ago (2015-02-24 15:39:26 UTC) #7
Deprecated (see juliatuttle)
The hostname-rewriting (*.localhost => "localhost.") logic looks good to me, but I think you're rewriting ...
5 years, 10 months ago (2015-02-24 16:39:23 UTC) #8
estark
Thanks ttuttle! I did some of what you suggested (patch set 4) but ran into ...
5 years, 10 months ago (2015-02-26 07:58:45 UTC) #9
estark
https://codereview.chromium.org/938093003/diff/40001/net/dns/dns_transaction.cc File net/dns/dns_transaction.cc (right): https://codereview.chromium.org/938093003/diff/40001/net/dns/dns_transaction.cc#newcode620 net/dns/dns_transaction.cc:620: // Redirect .localhost queries to localhost to make sure ...
5 years, 10 months ago (2015-02-26 07:58:53 UTC) #10
Ryan Sleevi
Just more drive-bys while I let Thomas review :) https://codereview.chromium.org/938093003/diff/60001/net/base/net_util.cc File net/base/net_util.cc (right): https://codereview.chromium.org/938093003/diff/60001/net/base/net_util.cc#newcode148 net/base/net_util.cc:148: ...
5 years, 9 months ago (2015-02-27 03:21:10 UTC) #11
estark
thanks rsleevi! https://codereview.chromium.org/938093003/diff/60001/net/base/net_util.cc File net/base/net_util.cc (right): https://codereview.chromium.org/938093003/diff/60001/net/base/net_util.cc#newcode148 net/base/net_util.cc:148: static const size_t kLocalhostTLDLength = strlen(kLocalhostTLD); On ...
5 years, 9 months ago (2015-02-27 05:00:47 UTC) #12
Ryan Sleevi
ttuttle: Ping? :)
5 years, 9 months ago (2015-03-19 03:57:11 UTC) #14
Ryan Sleevi
ttuttle: Ping Emily: Feel free to keep pinging Thomas every day :) https://codereview.chromium.org/938093003/diff/80001/net/base/net_util.cc File net/base/net_util.cc ...
5 years, 9 months ago (2015-03-24 23:15:20 UTC) #15
estark
Heh, ok, since Ryan said to.... ttuttle: ping! https://codereview.chromium.org/938093003/diff/80001/net/base/net_util.cc File net/base/net_util.cc (right): https://codereview.chromium.org/938093003/diff/80001/net/base/net_util.cc#newcode148 net/base/net_util.cc:148: static ...
5 years, 9 months ago (2015-03-25 23:53:33 UTC) #16
Deprecated (see juliatuttle)
Pong! Looking at this now.
5 years, 9 months ago (2015-03-26 17:00:43 UTC) #17
Deprecated (see juliatuttle)
LGTM with one nit, which you are free to ignore. https://codereview.chromium.org/938093003/diff/120001/net/base/net_util.cc File net/base/net_util.cc (right): https://codereview.chromium.org/938093003/diff/120001/net/base/net_util.cc#newcode1024 ...
5 years, 9 months ago (2015-03-26 17:04:36 UTC) #18
Ryan Sleevi
https://codereview.chromium.org/938093003/diff/120001/net/base/net_util.cc File net/base/net_util.cc (right): https://codereview.chromium.org/938093003/diff/120001/net/base/net_util.cc#newcode1024 net/base/net_util.cc:1024: if (*host.rbegin() == '.') On 2015/03/26 17:04:36, ttuttle wrote: ...
5 years, 9 months ago (2015-03-26 17:10:57 UTC) #19
Deprecated (see juliatuttle)
On 2015/03/26 17:10:57, Ryan Sleevi wrote: > https://codereview.chromium.org/938093003/diff/120001/net/base/net_util.cc > File net/base/net_util.cc (right): > > https://codereview.chromium.org/938093003/diff/120001/net/base/net_util.cc#newcode1024 ...
5 years, 9 months ago (2015-03-26 17:12:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/938093003/120001
5 years, 9 months ago (2015-03-26 18:37:19 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-26 19:52:27 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 19:53:53 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5d131a1fd9b808c5fd08c45f8299e669b13ec393
Cr-Commit-Position: refs/heads/master@{#322452}

Powered by Google App Engine
This is Rietveld 408576698