See https://github.com/whatwg/url/pull/544 and new tests at https://github.com/web-platform-tests/wpt/pull/25716. Safari does not copy the host from the base URL for file URLs.
Created attachment 410276 [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
Created attachment 410281 [details] Patch
Comment on attachment 410281 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=410281&action=review > Source/WTF/wtf/URLParser.cpp:1563 > + copyURLPartsUntil(base, URLPart::SchemeEnd, c, nonUTF8QueryEncoding); Note: this code does not have a corresponding case that copies until URLPart::PortEnd because we are transitioning to State::FileHost and we don't want to copy the host of the base URL here. The other cases do if there is one.
http://trac.webkit.org/r267896
<rdar://problem/69895958>