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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js

Issue 1818923004: [DevTools] Fix to double wrapping IPv6 in square brackets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@BETTER_HAR_SUPPORT
Patch Set: Added rule in test expectations Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/http/tests/inspector/resource-parameters-ipv6-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 { 200 {
201 return this._loaderId; 201 return this._loaderId;
202 }, 202 },
203 203
204 /** 204 /**
205 * @param {string} ip 205 * @param {string} ip
206 * @param {number} port 206 * @param {number} port
207 */ 207 */
208 setRemoteAddress: function(ip, port) 208 setRemoteAddress: function(ip, port)
209 { 209 {
210 if (ip.indexOf(":") !== -1)
211 ip = "[" + ip + "]";
212 this._remoteAddress = ip + ":" + port; 210 this._remoteAddress = ip + ":" + port;
213 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.RemoteA ddressChanged, this); 211 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.RemoteA ddressChanged, this);
214 }, 212 },
215 213
216 /** 214 /**
217 * @return {string} 215 * @return {string}
218 */ 216 */
219 remoteAddress: function() 217 remoteAddress: function()
220 { 218 {
221 return this._remoteAddress; 219 return this._remoteAddress;
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo urceMessageAdded, message); 1184 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo urceMessageAdded, message);
1187 }, 1185 },
1188 1186
1189 replayXHR: function() 1187 replayXHR: function()
1190 { 1188 {
1191 this.target().networkAgent().replayXHR(this.requestId); 1189 this.target().networkAgent().replayXHR(this.requestId);
1192 }, 1190 },
1193 1191
1194 __proto__: WebInspector.SDKObject.prototype 1192 __proto__: WebInspector.SDKObject.prototype
1195 } 1193 }
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/http/tests/inspector/resource-parameters-ipv6-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698