When setting a cookie without a `domain`, we use the current host as the `domain`, but we also prepend a "." to the host. RFC 2965 states "If an explicitly specified value does not start with a dot, the user agent supplies a leading dot.", so we should only be adding a leading "." if a `domain` is provided.
<rdar://problem/49767847>
Created attachment 368207 [details] Patch
Comment on attachment 368207 [details] Patch r=me, why don't we have tests for this?
Comment on attachment 368207 [details] Patch There are WPT that cover this.
Comment on attachment 368207 [details] Patch Clearing flags on attachment: 368207 Committed r244924: <https://trac.webkit.org/changeset/244924>
All reviewed patches have been landed. Closing bug.