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

Issue 3440032: Don't treat ';' as an authority terminator when parsing a potential URL. Thi... (Closed)

Created:
10 years, 2 months ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Don't treat ';' as an authority terminator when parsing a potential URL. This was making the omnibox believe that "tl;dr" was a URL with "tl" as a host and ";dr" as a path, confusing it. BUG=56967 TEST=Covered by unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60726

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Peter Kasting
10 years, 2 months ago (2010-09-27 21:07:18 UTC) #1
brettw
10 years, 2 months ago (2010-09-27 21:18:10 UTC) #2
LGTM

On Mon, Sep 27, 2010 at 2:07 PM,  <pkasting@chromium.org> wrote:
> Reviewers: brettw,
>
> Description:
> Don't treat ';' as an authority terminator when parsing a potential URL.
>  This
> was making the omnibox believe that "tl;dr" was a URL with "tl" as a host
> and
> ";dr" as a path, confusing it.
>
> BUG=56967
> TEST=Covered by unittests
>
> Please review this at http://codereview.chromium.org/3440032/show
>
> SVN Base: svn://chrome-svn/chrome/trunk/src/
>
> Affected files:
>  M     DEPS
>  M     chrome/browser/autocomplete/autocomplete_unittest.cc
>
>
> Index: DEPS
> ===================================================================
> --- DEPS        (revision 60381)
> +++ DEPS        (working copy)
> @@ -20,7 +20,7 @@
>     "/trunk/deps/support@20411",
>
>   "src/googleurl":
> -    (Var("googlecode_url") % "google-url") + "/trunk@146",
> +    (Var("googlecode_url") % "google-url") + "/trunk@147",
>
>   "src/seccompsandbox":
>     "http://seccompsandbox.googlecode.com/svn/trunk@119",
> Index: chrome/browser/autocomplete/autocomplete_unittest.cc
> ===================================================================
> --- chrome/browser/autocomplete/autocomplete_unittest.cc        (revision
> 60381)
> +++ chrome/browser/autocomplete/autocomplete_unittest.cc        (working
> copy)
> @@ -217,6 +217,7 @@
>     { L"foo.com", AutocompleteInput::URL },
>     { L"-.com", AutocompleteInput::UNKNOWN },
>     { L"foo/bar", AutocompleteInput::URL },
> +    { L"foo;bar", AutocompleteInput::QUERY },
>     { L"foo/bar baz", AutocompleteInput::UNKNOWN },
>     { L"foo bar.com", AutocompleteInput::QUERY },
>     { L"foo bar", AutocompleteInput::QUERY },
>
>
>

Powered by Google App Engine
This is Rietveld 408576698