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

Issue 115748: url_parse: Segment partially-typed IPv6 literals.... (Closed)

Created:
11 years, 7 months ago by pmarks
Modified:
9 years, 7 months ago
Reviewers:
eroman, brettw
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

url_parse: Segment partially-typed IPv6 literals. In Chromium, when a user is typing an IPv6 literal into the address bar, the autocomplete system goes nuts, trying to grab a port from the end of the address before it's complete. Fix this by parsing unterminated IPv6 literals as if there were no port number. These partial addresses will not survive canonicalization, but they keep the autocompleter running smoothly as the address is typed. Also, fix some minor lint warnings elsewhere in url_parse.cc

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -20 lines) Patch
M src/url_parse.cc View 1 2 3 4 chunks +21 lines, -19 lines 0 comments Download
M src/url_parse_unittest.cc View 1 2 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
pmarks
11 years, 7 months ago (2009-05-24 23:59:56 UTC) #1
eroman
looks good to me. i suggest also adding a unit-test for this closer to the ...
11 years, 7 months ago (2009-05-26 18:31:15 UTC) #2
pmarks
On 2009/05/26 18:31:15, eroman wrote: > looks good to me. > > i suggest also ...
11 years, 7 months ago (2009-05-26 20:22:11 UTC) #3
eroman
> googleurl is pulled in. Am I reading that correctly? Yes, that is correct.
11 years, 7 months ago (2009-05-26 20:49:12 UTC) #4
pmarks
My CanonicalizeHostVerbose change is now blocked for a while, so I'm coming back to this ...
11 years, 6 months ago (2009-06-02 23:05:57 UTC) #5
brettw
LGTM with some minor clarifications. http://codereview.chromium.org/115748/diff/3001/2003 File src/url_parse.cc (right): http://codereview.chromium.org/115748/diff/3001/2003#newcode153 Line 153: int bracket = ...
11 years, 6 months ago (2009-06-03 20:08:43 UTC) #6
pmarks
I've updated the comments/names in Patch Set 4.
11 years, 6 months ago (2009-06-03 21:50:26 UTC) #7
brettw
LGTM
11 years, 6 months ago (2009-06-03 21:55:12 UTC) #8
pmarks
11 years, 6 months ago (2009-06-03 22:06:03 UTC) #9

Powered by Google App Engine
This is Rietveld 408576698