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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 1754713006: CORS-RFC1918: Introduce the 'addressSpace' IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar webexposed Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 5abc0fbc26a4ab2e716825e319f5da77ddd61d8a..93e8ee4186dbb679efd8e9652758544a73023a97 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -955,7 +955,7 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
response->setWasCached(!info.load_timing.request_start_time.is_null() &&
info.response_time < info.load_timing.request_start_time);
response->setRemoteIPAddress(
- WebString::fromUTF8(info.socket_address.host()));
+ WebString::fromUTF8(info.socket_address.HostForURL()));
philipj_slow 2016/03/04 04:35:08 Is this the "pretty bad bug"? I can't review here.
Mike West 2016/03/04 05:53:54 Yes. `host` returns an IPv6 address as `::1`, whil
Mike West 2016/03/04 08:58:21 Added 'WebURLLoaderImplTest.ResponseIPAddress'.
response->setRemotePort(info.socket_address.port());
response->setConnectionID(info.load_timing.socket_log_id);
response->setConnectionReused(info.load_timing.socket_reused);

Powered by Google App Engine
This is Rietveld 408576698