| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -208,7 +208,7 @@ CHAR_TEST(8, IsForbiddenHostCodePoint, | |||
| 208 | 208 | ch == ' ' || ch == '#' || ch == '%' || ch == '/' || | |
| 209 | 209 | ch == ':' || ch == '?' || ch == '@' || ch == '[' || | |
| 210 | 210 | ch == '<' || ch == '>' || ch == '\\' || ch == ']' || | |
| 211 | - ch == '^') | ||
| 211 | + ch == '^' || ch == '|') | ||
| 212 | 212 | ||
| 213 | 213 | // https://url.spec.whatwg.org/#windows-drive-letter | |
| 214 | 214 | TWO_CHAR_STRING_TEST(8, IsWindowsDriveLetter, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,6 +44,11 @@ TEST_F(URLTest, Simple2) { | |||
| 44 | 44 | EXPECT_EQ(simple.fragment(), "fragment"); | |
| 45 | 45 | } | |
| 46 | 46 | ||
| 47 | + TEST_F(URLTest, ForbiddenHostCodePoint) { | ||
| 48 | + URL error("https://exa|mple.org:81/a/b/c?query#fragment"); | ||
| 49 | + EXPECT_TRUE(error.flags() & URL_FLAGS_FAILED); | ||
| 50 | + } | ||
| 51 | + | ||
| 47 | 52 | TEST_F(URLTest, NoBase1) { | |
| 48 | 53 | URL error("123noscheme"); | |
| 49 | 54 | EXPECT_TRUE(error.flags() & URL_FLAGS_FAILED); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ Last update: | |||
| 21 | 21 | - html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/5873f2d8f1/html/webappapis/timers | |
| 22 | 22 | - interfaces: https://github.com/web-platform-tests/wpt/tree/79fa4cf76e/interfaces | |
| 23 | 23 | - resources: https://github.com/web-platform-tests/wpt/tree/972ca5b669/resources | |
| 24 | - - url: https://github.com/web-platform-tests/wpt/tree/33f2e3f2e7/url | ||
| 24 | + - url: https://github.com/web-platform-tests/wpt/tree/5eebfdb1f6/url | ||
| 25 | 25 | ||
| 26 | 26 | [Web Platform Tests]: https://github.com/web-platform-tests/wpt | |
| 27 | 27 | [`git node wpt`]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md#git-node-wpt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4682,30 +4682,30 @@ | |||
| 4682 | 4682 | }, | |
| 4683 | 4683 | "Allowed host code points", | |
| 4684 | 4684 | { | |
| 4685 | - "input": "http://\u001F!\"$&'()*+,-.;=_`{|}~/", | ||
| 4685 | + "input": "http://\u001F!\"$&'()*+,-.;=_`{}~/", | ||
| 4686 | 4686 | "base": "about:blank", | |
| 4687 | - "href": "http://\u001F!\"$&'()*+,-.;=_`{|}~/", | ||
| 4688 | - "origin": "http://\u001F!\"$&'()*+,-.;=_`{|}~", | ||
| 4687 | + "href": "http://\u001F!\"$&'()*+,-.;=_`{}~/", | ||
| 4688 | + "origin": "http://\u001F!\"$&'()*+,-.;=_`{}~", | ||
| 4689 | 4689 | "protocol": "http:", | |
| 4690 | 4690 | "username": "", | |
| 4691 | 4691 | "password": "", | |
| 4692 | - "host": "\u001F!\"$&'()*+,-.;=_`{|}~", | ||
| 4693 | - "hostname": "\u001F!\"$&'()*+,-.;=_`{|}~", | ||
| 4692 | + "host": "\u001F!\"$&'()*+,-.;=_`{}~", | ||
| 4693 | + "hostname": "\u001F!\"$&'()*+,-.;=_`{}~", | ||
| 4694 | 4694 | "port": "", | |
| 4695 | 4695 | "pathname": "/", | |
| 4696 | 4696 | "search": "", | |
| 4697 | 4697 | "hash": "" | |
| 4698 | 4698 | }, | |
| 4699 | 4699 | { | |
| 4700 | - "input": "sc://\u001F!\"$&'()*+,-.;=_`{|}~/", | ||
| 4700 | + "input": "sc://\u001F!\"$&'()*+,-.;=_`{}~/", | ||
| 4701 | 4701 | "base": "about:blank", | |
| 4702 | - "href": "sc://%1F!\"$&'()*+,-.;=_`{|}~/", | ||
| 4702 | + "href": "sc://%1F!\"$&'()*+,-.;=_`{}~/", | ||
| 4703 | 4703 | "origin": "null", | |
| 4704 | 4704 | "protocol": "sc:", | |
| 4705 | 4705 | "username": "", | |
| 4706 | 4706 | "password": "", | |
| 4707 | - "host": "%1F!\"$&'()*+,-.;=_`{|}~", | ||
| 4708 | - "hostname": "%1F!\"$&'()*+,-.;=_`{|}~", | ||
| 4707 | + "host": "%1F!\"$&'()*+,-.;=_`{}~", | ||
| 4708 | + "hostname": "%1F!\"$&'()*+,-.;=_`{}~", | ||
| 4709 | 4709 | "port": "", | |
| 4710 | 4710 | "pathname": "/", | |
| 4711 | 4711 | "search": "", | |
@@ -5202,6 +5202,56 @@ | |||
| 5202 | 5202 | "search": "", | |
| 5203 | 5203 | "hash": "" | |
| 5204 | 5204 | }, | |
| 5205 | + { | ||
| 5206 | + "input": "file://%43%3A", | ||
| 5207 | + "base": "about:blank", | ||
| 5208 | + "failure": true | ||
| 5209 | + }, | ||
| 5210 | + { | ||
| 5211 | + "input": "file://%43%7C", | ||
| 5212 | + "base": "about:blank", | ||
| 5213 | + "failure": true | ||
| 5214 | + }, | ||
| 5215 | + { | ||
| 5216 | + "input": "file://%43|", | ||
| 5217 | + "base": "about:blank", | ||
| 5218 | + "failure": true | ||
| 5219 | + }, | ||
| 5220 | + { | ||
| 5221 | + "input": "file://C%7C", | ||
| 5222 | + "base": "about:blank", | ||
| 5223 | + "failure": true | ||
| 5224 | + }, | ||
| 5225 | + { | ||
| 5226 | + "input": "file://%43%7C/", | ||
| 5227 | + "base": "about:blank", | ||
| 5228 | + "failure": true | ||
| 5229 | + }, | ||
| 5230 | + { | ||
| 5231 | + "input": "https://%43%7C/", | ||
| 5232 | + "base": "about:blank", | ||
| 5233 | + "failure": true | ||
| 5234 | + }, | ||
| 5235 | + { | ||
| 5236 | + "input": "asdf://%43|/", | ||
| 5237 | + "base": "about:blank", | ||
| 5238 | + "failure": true | ||
| 5239 | + }, | ||
| 5240 | + { | ||
| 5241 | + "input": "asdf://%43%7C/", | ||
| 5242 | + "base": "about:blank", | ||
| 5243 | + "href": "asdf://%43%7C/", | ||
| 5244 | + "origin": "null", | ||
| 5245 | + "protocol": "asdf:", | ||
| 5246 | + "username": "", | ||
| 5247 | + "password": "", | ||
| 5248 | + "host": "%43%7C", | ||
| 5249 | + "hostname": "%43%7C", | ||
| 5250 | + "port": "", | ||
| 5251 | + "pathname": "/", | ||
| 5252 | + "search": "", | ||
| 5253 | + "hash": "" | ||
| 5254 | + }, | ||
| 5205 | 5255 | "# file URLs relative to other file URLs (via https://github.com/jsdom/whatwg-url/pull/60)", | |
| 5206 | 5256 | { | |
| 5207 | 5257 | "input": "pix/submit.gif", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,7 @@ | |||
| 44 | 44 | "path": "resources" | |
| 45 | 45 | }, | |
| 46 | 46 | "url": { | |
| 47 | - "commit": "33f2e3f2e759bd51ebf8e4b9a01b067bc8281c5c", | ||
| 47 | + "commit": "5eebfdb1f68059549b3efff380dd190bc6078266", | ||
| 48 | 48 | "path": "url" | |
| 49 | 49 | } | |
| 50 | 50 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments