Changeset 284478 in webkit
- Timestamp:
- Oct 19, 2021 12:28:40 PM (9 months ago)
- Location:
- trunk
- Files:
-
- 12 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/url/a-element-origin-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/url/a-element-origin-xhtml-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/url/resources/urltestdata.json (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/url/url-constructor.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/url/url-constructor.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/url/url-origin.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/url/url-origin.any.worker-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/SecurityOrigin.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r284477 r284478 1 2021-10-19 Alex Christensen <achristensen@webkit.org> 2 3 Origin of opaque blob: URLs ends up as empty string 4 https://bugs.webkit.org/show_bug.cgi?id=231942 5 6 Reviewed by Tim Horton. 7 8 * web-platform-tests/url/a-element-expected.txt: 9 * web-platform-tests/url/a-element-origin-expected.txt: 10 * web-platform-tests/url/a-element-origin-xhtml-expected.txt: 11 * web-platform-tests/url/a-element-xhtml-expected.txt: 12 * web-platform-tests/url/resources/urltestdata.json: 13 * web-platform-tests/url/url-constructor.any-expected.txt: 14 * web-platform-tests/url/url-constructor.any.worker-expected.txt: 15 * web-platform-tests/url/url-origin.any-expected.txt: 16 * web-platform-tests/url/url-origin.any.worker-expected.txt: 17 1 18 2021-10-19 Chris Dumez <cdumez@apple.com> 2 19 -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt
r281963 r284478 592 592 PASS Parsing: <blob:https://example.com:443/> against <about:blank> 593 593 PASS Parsing: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank> 594 PASS Parsing: <blob:> against <about:blank> 594 595 PASS Parsing: <http://0x7f.0.0.0x7g> against <about:blank> 595 596 PASS Parsing: <http://0X7F.0.0.0X7G> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-origin-expected.txt
r281963 r284478 321 321 PASS Parsing origin: <urn:ietf:rfc:2648> against <about:blank> 322 322 PASS Parsing origin: <tag:joe@example.org,2001:foo/bar> against <about:blank> 323 PASS Parsing origin: <blob:https://example.com:443/> against <about:blank> 324 PASS Parsing origin: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank> 325 PASS Parsing origin: <blob:> against <about:blank> 323 326 PASS Parsing origin: <non-special:cannot-be-a-base-url-\0 324 327 ~> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-origin-xhtml-expected.txt
r281963 r284478 321 321 PASS Parsing origin: <urn:ietf:rfc:2648> against <about:blank> 322 322 PASS Parsing origin: <tag:joe@example.org,2001:foo/bar> against <about:blank> 323 PASS Parsing origin: <blob:https://example.com:443/> against <about:blank> 324 PASS Parsing origin: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank> 325 PASS Parsing origin: <blob:> against <about:blank> 323 326 PASS Parsing origin: <non-special:cannot-be-a-base-url-\0 324 327 ~> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt
r281963 r284478 592 592 PASS Parsing: <blob:https://example.com:443/> against <about:blank> 593 593 PASS Parsing: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank> 594 PASS Parsing: <blob:> against <about:blank> 594 595 PASS Parsing: <http://0x7f.0.0.0x7g> against <about:blank> 595 596 PASS Parsing: <http://0X7F.0.0.0X7G> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/resources/urltestdata.json
r281963 r284478 7304 7304 "base": "about:blank", 7305 7305 "href": "blob:https://example.com:443/", 7306 "origin": "https://example.com", 7306 7307 "protocol": "blob:", 7307 7308 "username": "", … … 7318 7319 "base": "about:blank", 7319 7320 "href": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf", 7321 "origin": "null", 7320 7322 "protocol": "blob:", 7321 7323 "username": "", … … 7325 7327 "port": "", 7326 7328 "pathname": "d3958f5c-0777-0845-9dcf-2cb28783acaf", 7329 "search": "", 7330 "hash": "" 7331 }, 7332 { 7333 "input": "blob:", 7334 "base": "about:blank", 7335 "href": "blob:", 7336 "origin": "null", 7337 "protocol": "blob:", 7338 "username": "", 7339 "password": "", 7340 "host": "", 7341 "hostname": "", 7342 "port": "", 7343 "pathname": "", 7327 7344 "search": "", 7328 7345 "hash": "" -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor.any-expected.txt
r281963 r284478 591 591 PASS Parsing: <blob:https://example.com:443/> against <about:blank> 592 592 PASS Parsing: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank> 593 PASS Parsing: <blob:> against <about:blank> 593 594 PASS Parsing: <http://0x7f.0.0.0x7g> against <about:blank> 594 595 PASS Parsing: <http://0X7F.0.0.0X7G> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor.any.worker-expected.txt
r281963 r284478 591 591 PASS Parsing: <blob:https://example.com:443/> against <about:blank> 592 592 PASS Parsing: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank> 593 PASS Parsing: <blob:> against <about:blank> 593 594 PASS Parsing: <http://0x7f.0.0.0x7g> against <about:blank> 594 595 PASS Parsing: <http://0X7F.0.0.0X7G> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-origin.any-expected.txt
r281963 r284478 320 320 PASS Origin parsing: <urn:ietf:rfc:2648> against <about:blank> 321 321 PASS Origin parsing: <tag:joe@example.org,2001:foo/bar> against <about:blank> 322 PASS Origin parsing: <blob:https://example.com:443/> against <about:blank> 323 PASS Origin parsing: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank> 324 PASS Origin parsing: <blob:> against <about:blank> 322 325 PASS Origin parsing: <non-special:cannot-be-a-base-url-\0 323 326 ~> against <about:blank> -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-origin.any.worker-expected.txt
r281963 r284478 320 320 PASS Origin parsing: <urn:ietf:rfc:2648> against <about:blank> 321 321 PASS Origin parsing: <tag:joe@example.org,2001:foo/bar> against <about:blank> 322 PASS Origin parsing: <blob:https://example.com:443/> against <about:blank> 323 PASS Origin parsing: <blob:d3958f5c-0777-0845-9dcf-2cb28783acaf> against <about:blank> 324 PASS Origin parsing: <blob:> against <about:blank> 322 325 PASS Origin parsing: <non-special:cannot-be-a-base-url-\0 323 326 ~> against <about:blank> -
trunk/Source/WebCore/ChangeLog
r284472 r284478 1 2021-10-19 Alex Christensen <achristensen@webkit.org> 2 3 Origin of opaque blob: URLs ends up as empty string 4 https://bugs.webkit.org/show_bug.cgi?id=231942 5 6 Reviewed by Tim Horton. 7 8 It should be "null" instead of "". 9 This matches Chrome and Firefox. 10 Covered by a PR to WPT included in this patch. 11 12 * page/SecurityOrigin.cpp: 13 (WebCore::shouldTreatAsUniqueOrigin): 14 1 15 2021-10-19 Youenn Fablet <youenn@apple.com> 2 16 -
trunk/Source/WebCore/page/SecurityOrigin.cpp
r278894 r284478 99 99 // FIXME: Do we need to unwrap the URL further? 100 100 URL innerURL = SecurityOrigin::shouldUseInnerURL(url) ? SecurityOrigin::extractInnerURL(url) : url; 101 102 // FIXME: Check whether innerURL is valid.101 if (!innerURL.isValid()) 102 return true; 103 103 104 104 // For edge case URLs that were probably misparsed, make sure that the origin is unique.
Note: See TracChangeset
for help on using the changeset viewer.