Improve url-setters.html WPT test by testing for failure that can occur when setting host or hostname [1]. [1] https://url.spec.whatwg.org/#host-state
Created attachment 401575 [details] Patch
Comment on attachment 401575 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401575&action=review > Source/WebCore/html/URLDecomposition.cpp:128 > + if (fullURL.isValid()) > + setFullURL(fullURL); Can we put this check inside the setFullURL function? Does something fail if we do that?
Created attachment 401625 [details] Patch
Created attachment 401628 [details] Patch
Committed r262900: <https://trac.webkit.org/changeset/262900> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401628 [details].
<rdar://problem/64247583>
Comment on attachment 401575 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401575&action=review >> Source/WebCore/html/URLDecomposition.cpp:128 >> + setFullURL(fullURL); > > Can we put this check inside the setFullURL function? Does something fail if we do that? I tried, but it breaks one test. I propose we add these checks as needed.