| Index: extensions/common/extension_messages.cc
|
| diff --git a/extensions/common/extension_messages.cc b/extensions/common/extension_messages.cc
|
| index c7d25b7696d082b9d97f22999d55eca54ba7a10a..fcc34a2798bf406371871ded20a292b9102fbdb7 100644
|
| --- a/extensions/common/extension_messages.cc
|
| +++ b/extensions/common/extension_messages.cc
|
| @@ -140,7 +140,10 @@ bool ParamTraits<URLPattern>::Read(const base::Pickle* m,
|
| // schemes after parsing the pattern. Update these method calls once we can
|
| // ignore scheme validation with URLPattern parse options. crbug.com/90544
|
| p->SetValidSchemes(URLPattern::SCHEME_ALL);
|
| - URLPattern::ParseResult result = p->Parse(spec);
|
| + // Allow effective TLD wildcarding since this check is only needed on initial
|
| + // creation of URLPattern and not as part of deserialization.
|
| + URLPattern::ParseResult result =
|
| + p->Parse(spec, URLPattern::ALLOW_WILDCARD_FOR_EFFECTIVE_TLD);
|
| p->SetValidSchemes(valid_schemes);
|
| return URLPattern::PARSE_SUCCESS == result;
|
| }
|
|
|