See https://github.com/whatwg/url/pull/619 and https://github.com/web-platform-tests/wpt/pull/29666.
So it I have a website at http://site0.webkit.org, and configured a DNS search domain webkit.org on my machine, the browser should prevent loading site0?..
No, I believe this only prevents URLs like http://webkit.org.001/ from parsing, with only digits or hex numbers after the last dot.
Created attachment 435104 [details]
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
I added some tests to WPT here: https://github.com/web-platform-tests/wpt/pull/29936
Adding (later) to title to remind myself to revisit this after our next branch.
Other tests should include these:
Created attachment 435187 [details]
Created attachment 435191 [details]
Created attachment 435196 [details]
Created attachment 435199 [details]
Created attachment 436956 [details]
Committed r281963 (241270@main): <https://commits.webkit.org/241270@main>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 436956 [details].