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

Issue 303022: Disable IPv6 results for the PAC bindings:... (Closed)

Created:
11 years, 2 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Disable IPv6 results for the PAC bindings: myIpAddress() dnsResolve() isResolvable() This makes us behave more like IE and less like Firefox for scripts where IPv6 addresses are not expected. BUG=24641 TEST=ProxyResolverJSBindingsTest.DontUseIPv6 Committed in r29804.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -15 lines) Patch
M net/base/mock_host_resolver.h View 1 chunk +5 lines, -0 lines 1 comment Download
M net/base/mock_host_resolver.cc View 4 chunks +26 lines, -6 lines 2 comments Download
M net/proxy/proxy_resolver_js_bindings.cc View 2 chunks +8 lines, -2 lines 2 comments Download
M net/proxy/proxy_resolver_js_bindings_unittest.cc View 3 chunks +48 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
eroman
This is really just a 4 line change (proxy_resolver_js_bindings_unittest.cc). All of the other deltas are ...
11 years, 2 months ago (2009-10-21 20:54:04 UTC) #1
eroman
> This is really just a 4 line change (proxy_resolver_js_bindings_unittest.cc). Er, I meant proxy_resolver_js_bindings.cc
11 years, 2 months ago (2009-10-21 20:54:48 UTC) #2
darin (slow to review)
LGTM
11 years, 2 months ago (2009-10-22 15:25:59 UTC) #3
wtc
LGTM. It's not clear how you took care of isResolvable(). http://codereview.chromium.org/303022/diff/4001/4005 File net/base/mock_host_resolver.cc (right): http://codereview.chromium.org/303022/diff/4001/4005#newcode151 ...
11 years, 2 months ago (2009-10-22 21:53:54 UTC) #4
eroman
11 years, 2 months ago (2009-10-22 22:06:21 UTC) #5
> LGTM.  It's not clear how you took care of isResolvable().

isResolvable() is implemented in terms of dnsResolve(), so we get it for free:

function isResolvable(host) {
    var ip = dnsResolve(host);
    return (ip != null);
}

I will address your other comments as a separate CL (since this is already
committed).

Powered by Google App Engine
This is Rietveld 408576698