As a convenient way of getting the host and port (if any) as a string. This is already needed in a few places.
Created attachment 295141 [details] Patch
Comment on attachment 295141 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=295141&action=review > Source/WebCore/html/URLUtils.h:132 > if (!url.port() || isDefaultPortForProtocol(url.port().value(), url.protocol())) > return url.host(); We can also remove this. The new URLParser will always remove the port if it's the default port for the protocol. Same with the check for hostEnd and pathStart.
Committed r208945: <http://trac.webkit.org/changeset/208945>