DescriptionSupport internal hostnames (such as http://localhost) in domain-based deletion
Until now, RegistrableDomainFilterBuilder allowed the filters to contain only
eTLD+1 and IP addresses. This excluded internal hostnames, such as
http://localhost.
Since domain scoped cookies can not be set on domains that do not contain
at least one dot (two dots according to RFC 2109, but the leading dot
is automatically prepended), cookies for "localhost" will never be visible
from other hosts. In particular, they will not be visible from
"subdomain.localhost", therefore it is sufficient if the filter requires
exact hostname match in these cases.
Note that "subdomain.localhost" allows domain cookies, and these will be
visible from "third-level-domain.subdomain.localhost". GetDomainAndRegistry()
treats "subdomain.localhost" as an eTLD+1 from an unknown registry, and
RegistrableDomainFilterBuilder in this case works as usual.
BUG=589586
Committed: https://crrev.com/dba4dbf970d73e637514fb1b3a7b464f632d2222
Cr-Commit-Position: refs/heads/master@{#404128}
Patch Set 1 : Done, sending to review. #
Total comments: 4
Patch Set 2 : More tests #
Messages
Total messages: 16 (6 generated)
|