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

Issue 292003: Parse input with explicit schemes better. Before, if the user typed "http://... (Closed)

Created:
11 years, 2 months ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr., tim (not reviewing), ben+cc_chromium.org
Visibility:
Public.

Description

Parse input with explicit schemes better. Before, if the user typed "http://..." we always parsed as a URL. Now we parse more like we would without the scheme, so that we can reject various kinds of invalid inputs. BUG=none TEST=Input "http://foo:bar" (without quotes) in the address bar, and the default action should be search, not navigate. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29450

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -26 lines) Patch
M chrome/browser/autocomplete/autocomplete.cc View 1 6 chunks +39 lines, -25 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_unittest.cc View 1 3 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Peter Kasting
11 years, 2 months ago (2009-10-16 21:19:24 UTC) #1
Peter Kasting
Note: This will not pass unit tests until http://codereview.chromium.org/291005 lands.
11 years, 2 months ago (2009-10-16 23:21:20 UTC) #2
brettw
LGTM, thanks for the clear comments. http://codereview.chromium.org/292003/diff/1/3 File chrome/browser/autocomplete/autocomplete_unittest.cc (right): http://codereview.chromium.org/292003/diff/1/3#newcode248 Line 248: { L"http://user@foo.com", ...
11 years, 2 months ago (2009-10-17 04:24:09 UTC) #3
Peter Kasting
11 years, 2 months ago (2009-10-19 20:12:30 UTC) #4
On 2009/10/17 04:24:09, brettw wrote:
> http://codereview.chromium.org/292003/diff/1/3#newcode248
> Line 248: { L"http://user@foo.com", AutocompleteInput::URL },
> Can you add the case "http:host" and "http:user@host" and "http:ps/2 games"
> (i.e. makes sure the double slash isn't necessary to affect the outcome).

Done.  Landing.

Powered by Google App Engine
This is Rietveld 408576698