DescriptionImprove OriginAccessEntry support for IP addresses.
The current IP address check in OriginAccessEntry is hardly robust; it
just verifies that the last character in the given host is a digit. This
patch brings in the processing from GURL::HostIsIPAddress, and adds a
number of tests to verify the behavior.
It also notes clearly that the 'TreatIPAddressAsDomain' should never be
used outside of 'document.domain' layout tests, and even there we should
get rid of it ASAP.
BUG=477578
R=jochen@chromium.org, rsleevi@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195410
Patch Set 1 #
Total comments: 12
Patch Set 2 : Nits. #Patch Set 3 : Feedback. #
Messages
Total messages: 14 (4 generated)
|