| Index: components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc
|
| diff --git a/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc b/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc
|
| index eed2e7270716d46c651fbb1dea8f051a99b20748..89942ab5995be2ce56ea3d83b7b4be23f9eccb6a 100644
|
| --- a/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc
|
| +++ b/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc
|
| @@ -178,6 +178,18 @@ void ContentSubresourceFilterThrottleManager::MaybeAppendNavigationThrottles(
|
| }
|
| }
|
|
|
| +bool ContentSubresourceFilterThrottleManager::ShouldDisallowNewWindow() {
|
| + auto it = activated_frame_hosts_.find(web_contents()->GetMainFrame());
|
| + if (it == activated_frame_hosts_.end())
|
| + return false;
|
| + const ActivationState state = it->second->activation_state();
|
| + // This should trigger the standard popup blocking UI, so don't force the
|
| + // subresource filter specific UI here.
|
| + return state.activation_level == ActivationLevel::ENABLED &&
|
| + !state.filtering_disabled_for_document &&
|
| + !state.generic_blocking_rules_disabled;
|
| +}
|
| +
|
| std::unique_ptr<SubframeNavigationFilteringThrottle>
|
| ContentSubresourceFilterThrottleManager::
|
| MaybeCreateSubframeNavigationFilteringThrottle(
|
|
|