The "invalid url" test was using "chrome://", which is not recognized as invalid by WebKit (or by the URL specification I believe). Switch the URL to be "http://!@#$%^&()(&^%$#@" as this is recognized as invalid by Blink, Gecko & WebKit.
Pull request: https://github.com/WebKit/WebKit/pull/4755
Committed 254933@main (b50b980ac475): <https://commits.webkit.org/254933@main> Reviewed commits have been landed. Closing PR #4755 and removing active labels.
<rdar://problem/100481711>