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] Patch
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: https://example.037777777777/ https://example.040000000000/ https://example.0x100000000/ https://example.0xffffffff/ https://example.4294967295/ https://example.4294967296/ https://example.4x4/
Created attachment 435187 [details] Patch
Created attachment 435191 [details] Patch
Created attachment 435196 [details] Patch
Created attachment 435199 [details] Patch
<rdar://problem/82598251>
Created attachment 436956 [details] Patch
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].