| 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 3bdccc6017d338e3cadc9a7f5acf981461f04c18..97976e2d473be8ce938df349447b007b5be2df22 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
|
| @@ -195,6 +195,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(
|
|
|