| Index: content/renderer/webpublicsuffixlist_impl.cc
|
| diff --git a/content/renderer/webpublicsuffixlist_impl.cc b/content/renderer/webpublicsuffixlist_impl.cc
|
| index e1e00c22be28c7c42184e38d29999cb81d9f7308..0f58f1484cabbd311ef857bef606ac5b7c1a74b9 100644
|
| --- a/content/renderer/webpublicsuffixlist_impl.cc
|
| +++ b/content/renderer/webpublicsuffixlist_impl.cc
|
| @@ -13,10 +13,13 @@ WebPublicSuffixListImpl::~WebPublicSuffixListImpl() {
|
|
|
| size_t WebPublicSuffixListImpl::getPublicSuffixLength(
|
| const blink::WebString& host) {
|
| - size_t result = net::registry_controlled_domains::GetRegistryLength(
|
| - host.utf8(),
|
| - net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES,
|
| - net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
|
| + // Blink passes some things that aren't technically hosts like "*.foo", so
|
| + // use the permissive variant.
|
| + size_t result =
|
| + net::registry_controlled_domains::PermissiveGetHostRegistryLength(
|
| + host.utf8(),
|
| + net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES,
|
| + net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
|
| return result ? result : host.length();
|
| }
|
|
|
|
|