diff options
author | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-18 20:55:09 +0000 |
---|---|---|
committer | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-18 20:55:09 +0000 |
commit | f80e677d270a2db1037653a8182d6a04be498dce (patch) | |
tree | 0fb67e06f3d6a201a1451d14dbcc79e5d37ad68c /url/url_canon_unittest.cc | |
parent | b146234bd8b01a687b5f6ddaa7c6445773b2cf89 (diff) | |
download | chromium_src-f80e677d270a2db1037653a8182d6a04be498dce.zip chromium_src-f80e677d270a2db1037653a8182d6a04be498dce.tar.gz chromium_src-f80e677d270a2db1037653a8182d6a04be498dce.tar.bz2 |
Revert 223928 "Make relative file url parsing fail where there i..."
> Make relative file url parsing fail where there is a host:port in the relative URL.
>
> BUG=285720
> R=brettw@chromium.org, jar@chromium.org
>
> Review URL: https://codereview.chromium.org/23464046
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/23702051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223940 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/url_canon_unittest.cc')
-rw-r--r-- | url/url_canon_unittest.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/url/url_canon_unittest.cc b/url/url_canon_unittest.cc index 2e93f92..f6cd3a2 100644 --- a/url/url_canon_unittest.cc +++ b/url/url_canon_unittest.cc @@ -2001,11 +2001,6 @@ TEST(URLCanonTest, ResolveRelativeURL) { // is not file. {"http://host/a", true, false, "/c:\\foo", true, true, true, "http://host/c:/foo"}, {"http://host/a", true, false, "//c:\\foo", true, true, true, "http://c/foo"}, - // Ensure that ports aren't allowed for hosts relative to a file url. - // Although the result string shows a host:port portion, the call to - // resolve the relative URL returns false, indicating parse failure, - // which is what is required. - {"file:///foo.txt", true, true, "//host:80/bar.txt", true, true, false, "file://host:80/bar.txt"}, // Filesystem URL tests; filesystem URLs are only valid and relative if // they have no scheme, e.g. "./index.html". There's no valid equivalent // to http:index.html. |