https://bugs.webkit.org/show_bug.cgi?id=142178 added support for getting the host name of the cookie. A WKWebSiteDataRecord should have an API to get the cookie name and value of the cookie it represents.
It would be helpful if the API allowed read only access to all the properties of the cookie.,, either a NSDictionary representation or an actual NSHTTPCookie object.