haikuwebkit/LayoutTests/fetch
Alex Christensen 1568dce2f8 "http:" should not be a valid URL
https://bugs.webkit.org/show_bug.cgi?id=217250

Reviewed by Brady Eidson.

LayoutTests/imported/w3c:

* web-platform-tests/url/a-element-expected.txt:
* web-platform-tests/url/a-element-xhtml-expected.txt:
* web-platform-tests/url/url-constructor-expected.txt:

Source/WebCore:

* workers/service/context/ServiceWorkerThreadProxy.cpp:
(WebCore::topOriginURL):
Fix strange code written in r226257 that relied on the ability to assemble URLs starting with the protocol only.

Source/WTF:

Same with https, ws, wss, and for some reason ftp.
This matches the URL specification and Chrome and Firefox.

* wtf/URLParser.cpp:
(WTF::URLParser::parse):

Tools:

* TestWebKitAPI/Tests/WTF/URLParser.cpp:
(TestWebKitAPI::TEST_F):

LayoutTests:

* platform/mac-wk1/imported/w3c/web-platform-tests/url/failure-expected.txt: Removed.



Canonical link: https://commits.webkit.org/230042@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-10-03 18:39:27 +00:00
..
body-init-expected.txt
body-init.html
closing-while-fetching-blob-expected.txt
closing-while-fetching-blob.html
fetch-error-messages-expected.txt
fetch-error-messages.html
fetch-url-serialization-expected.txt "http:" should not be a valid URL 2020-10-03 18:39:27 +00:00
fetch-url-serialization.html
fetch-urls.json
fetch-worker-crash-expected.txt
fetch-worker-crash.html
fetch-worker-crash.js
header-constructor-is-array-expected.txt
header-constructor-is-array.html
header-constructor-overriden-expected.txt
header-constructor-overriden.html
header-constructor-subclass-expected.txt
header-constructor-subclass.html
shadowing-forEach-expected.txt
shadowing-forEach.html