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

Unified Diff: third_party/WebKit/LayoutTests/fast/url/script-tests/relative.js

Issue 2685843003: 'data:' may not be used as a document's base URL. (Closed)
Patch Set: Tests. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/url/script-tests/relative.js
diff --git a/third_party/WebKit/LayoutTests/fast/url/script-tests/relative.js b/third_party/WebKit/LayoutTests/fast/url/script-tests/relative.js
index 980d37fda0c87357f50a9d36a68340a2216a0c60..87a559dfd89acdd6ab95cb6c7d561b2d3c49a9a0 100644
--- a/third_party/WebKit/LayoutTests/fast/url/script-tests/relative.js
+++ b/third_party/WebKit/LayoutTests/fast/url/script-tests/relative.js
@@ -47,19 +47,10 @@ cases = [
["http://host/a", "#ref", "http://host/a#ref"],
["http://host/a#b", "#", "http://host/a#"],
["http://host/a?foo=bar#hello", "#bye", "http://host/a?foo=bar#bye"],
- // Non-hierarchical base: no relative handling. Relative input should
- // error, and if a scheme is present, it should be treated as absolute.
- ["data:foobar", "baz.html", ""],
- ["data:foobar", "data:baz", "data:baz"],
- ["data:foobar", "data:/base", "data:/base"],
- // Non-hierarchical base: absolute input should succeed.
- ["data:foobar", "http://host/", "http://host/"],
- ["data:foobar", "http:host", "http://host/"],
// Invalid schemes should be treated as relative.
["http://foo/bar", "./asd:fgh", "http://foo/asd:fgh"],
["http://foo/bar", ":foo", "http://foo/:foo"],
["http://foo/bar", " hello world", "http://foo/hello%20world"],
- ["data:asdf", ":foo", ""],
// We should treat semicolons like any other character in URL resolving
["http://host/a", ";foo", "http://host/;foo"],
["http://host/a;", ";foo", "http://host/;foo"],

Powered by Google App Engine
This is Rietveld 408576698