FormatURL used to escape characters in the query string that
GURL doesn't escape when cannonicalizing, and are illegal in the query portion of the URL according to spec. Fix that behavior, so if gurl is a valid url, so is GURL(FormatURL(gurl)). BUG=90387 TEST=NetUtilTest.FormatUrlRoundTripPathASCII, NetUtilTest.FormatUrlRoundTripPathEscape, NetUtilTest.FormatUrlRoundTripQueryASCII, NetUtilTest.FormatUrlRoundTripQueryEscaped Review URL: http://codereview.chromium.org/7649024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97093 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment