DescriptionChanges FormatURL to not strip http if the host starts with ftp or https[!a-z]. This
is necessitated by the omnibox treating ftp.www.com as
ftp://www.com as well as security problems.
I also changed FormatURL to always reset the supplied
url_parse::Parsed. I did this as in writing my test I uncovered a long
standing bug where a component wasn't getting reset. It seems much
safer to always reset than rely on all code paths setting every
component.
BUG=41585, 41652
TEST=make sure the omnibox doesn't strip http off urls that start with
ftp.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44943
Patch Set 1 #
Total comments: 1
Patch Set 2 : '' #Patch Set 3 : '' #
Total comments: 7
Patch Set 4 : '' #Patch Set 5 : '' #Messages
Total messages: 5 (0 generated)
|