Changeset 226469 in webkit
- Timestamp:
- Jan 5, 2018, 3:38:26 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r226456 r226469 1 2018-01-05 Alex Christensen <achristensen@webkit.org> 2 3 Forbid < and > in URL hosts 4 https://bugs.webkit.org/show_bug.cgi?id=181308 5 <rdar://problem/36012757> 6 7 Reviewed by Tim Horton. 8 9 * web-platform-tests/url/a-element-expected.txt: 10 * web-platform-tests/url/a-element-origin-expected.txt: 11 * web-platform-tests/url/a-element-origin-xhtml-expected.txt: 12 * web-platform-tests/url/a-element-xhtml-expected.txt: 13 * web-platform-tests/url/url-constructor-expected.txt: 14 * web-platform-tests/url/url-origin-expected.txt: 15 1 16 2018-01-05 Youenn Fablet <youenn@apple.com> 2 17 -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt
r223327 r226469 341 341 PASS Parsing: <mailto:/../> against <about:blank> 342 342 PASS Parsing: <sc://ñ.test/> against <about:blank> 343 PASS Parsing: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> 343 FAIL Parsing: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> assert_equals: href expected "sc://%1F!\"$&'()*+,-.;<=>^_`{|}~/" but got "sc://\x1f!\"$&'()*+,-.;<=>^_`{|}~/" 344 344 PASS Parsing: <sc://\0/> against <about:blank> 345 345 PASS Parsing: <sc:// /> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-origin-expected.txt
r217095 r226469 253 253 FAIL Parsing origin: <mailto:/../> against <about:blank> assert_equals: origin expected "null" but got "mailto://" 254 254 FAIL Parsing origin: <sc://ñ.test/> against <about:blank> assert_equals: origin expected "null" but got "sc://%c3%b1.test" 255 FAIL Parsing origin: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> assert_equals: origin expected "null" but got "sc://%1f!\"$&'()*+,-.;<=>^_`{|}~" 255 PASS Parsing origin: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> 256 256 FAIL Parsing origin: <x> against <sc://ñ> assert_equals: origin expected "null" but got "sc://%c3%b1" 257 257 FAIL Parsing origin: <sc:\../> against <about:blank> assert_equals: origin expected "null" but got "sc://" -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-origin-xhtml-expected.txt
r217095 r226469 253 253 FAIL Parsing origin: <mailto:/../> against <about:blank> assert_equals: origin expected "null" but got "mailto://" 254 254 FAIL Parsing origin: <sc://ñ.test/> against <about:blank> assert_equals: origin expected "null" but got "sc://%c3%b1.test" 255 FAIL Parsing origin: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> assert_equals: origin expected "null" but got "sc://%1f!\"$&'()*+,-.;<=>^_`{|}~" 255 PASS Parsing origin: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> 256 256 FAIL Parsing origin: <x> against <sc://ñ> assert_equals: origin expected "null" but got "sc://%c3%b1" 257 257 FAIL Parsing origin: <sc:\../> against <about:blank> assert_equals: origin expected "null" but got "sc://" -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt
r223327 r226469 341 341 PASS Parsing: <mailto:/../> against <about:blank> 342 342 PASS Parsing: <sc://ñ.test/> against <about:blank> 343 PASS Parsing: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> 343 FAIL Parsing: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> assert_equals: href expected "sc://%1F!\"$&'()*+,-.;<=>^_`{|}~/" but got "sc://\x1f!\"$&'()*+,-.;<=>^_`{|}~/" 344 344 PASS Parsing: <sc://\0/> against <about:blank> 345 345 PASS Parsing: <sc:// /> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor-expected.txt
r223327 r226469 347 347 PASS Parsing: <mailto:/../> against <about:blank> 348 348 PASS Parsing: <sc://ñ.test/> against <about:blank> 349 PASS Parsing: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> 349 FAIL Parsing: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> Type error 350 350 PASS Parsing: <sc://\0/> against <about:blank> 351 351 PASS Parsing: <sc:// /> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-origin-expected.txt
r217095 r226469 253 253 FAIL Origin parsing: <mailto:/../> against <about:blank> assert_equals: origin expected "null" but got "mailto://" 254 254 FAIL Origin parsing: <sc://ñ.test/> against <about:blank> assert_equals: origin expected "null" but got "sc://%c3%b1.test" 255 FAIL Origin parsing: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> assert_equals: origin expected "null" but got "sc://%1f!\"$&'()*+,-.;<=>^_`{|}~"255 FAIL Origin parsing: <sc://!"$&'()*+,-.;<=>^_`{|}~/> against <about:blank> Type error 256 256 FAIL Origin parsing: <x> against <sc://ñ> assert_equals: origin expected "null" but got "sc://%c3%b1" 257 257 FAIL Origin parsing: <sc:\../> against <about:blank> assert_equals: origin expected "null" but got "sc://" -
trunk/Source/WebCore/ChangeLog
r226468 r226469 1 2018-01-05 Alex Christensen <achristensen@webkit.org> 2 3 Forbid < and > in URL hosts 4 https://bugs.webkit.org/show_bug.cgi?id=181308 5 <rdar://problem/36012757> 6 7 Reviewed by Tim Horton. 8 9 https://url.spec.whatwg.org/#forbidden-host-code-point does not include these characters yet, but I think it should. 10 Firefox fails to parse URLs with < or > in the host. Chrome percent encodes them. Safari needs to do something. 11 The web platform tests are unclear on this case, and they will need to be updated with the specification. 12 They do show a change in behavior, though. 13 14 * platform/URLParser.cpp: 15 Add < and > to the list of forbidden host code points. 16 1 17 2018-01-05 Eric Carlson <eric.carlson@apple.com> 2 18 -
trunk/Source/WebCore/platform/URLParser.cpp
r225618 r226469 192 192 ForbiddenHost, // '%' 193 193 0, // '&' 194 0, // ' ''194 0, // '\'' 195 195 0, // '(' 196 196 0, // ')' … … 213 213 UserInfo | ForbiddenHost, // ':' 214 214 UserInfo, // ';' 215 UserInfo | Default | QueryPercent , // '<'215 UserInfo | Default | QueryPercent | ForbiddenHost, // '<' 216 216 UserInfo, // '=' 217 UserInfo | Default | QueryPercent , // '>'217 UserInfo | Default | QueryPercent | ForbiddenHost, // '>' 218 218 UserInfo | Default | SlashQuestionOrHash | ForbiddenHost, // '?' 219 219 UserInfo | ForbiddenHost, // '@'
Note:
See TracChangeset
for help on using the changeset viewer.