| Index: components/subresource_filter/core/common/indexed_ruleset.cc
|
| diff --git a/components/subresource_filter/core/common/indexed_ruleset.cc b/components/subresource_filter/core/common/indexed_ruleset.cc
|
| index f6d7cc3dc6a7fa6115ed3aef55e0d4e67b17f409..31e7702453c7bbe089e3c8f0216388ef5d1d2b1d 100644
|
| --- a/components/subresource_filter/core/common/indexed_ruleset.cc
|
| +++ b/components/subresource_filter/core/common/indexed_ruleset.cc
|
| @@ -382,8 +382,9 @@ IndexedRulesetMatcher::IndexedRulesetMatcher(const uint8_t* buffer, size_t size)
|
| bool IndexedRulesetMatcher::IsAllowed(const GURL& url,
|
| const url::Origin& initiator,
|
| proto::ElementType element_type) const {
|
| + if (!url.is_valid())
|
| + return true;
|
| const bool is_third_party = IsThirdPartyUrl(url, initiator);
|
| -
|
| return !IsMatch(root_->blacklist_index(), url, initiator, element_type,
|
| is_third_party) ||
|
| IsMatch(root_->whitelist_index(), url, initiator, element_type,
|
|
|