Skip to content

Commit

Permalink
Fix brave/brave-ios#8369: Disable content blockers when TP is disabled (
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba authored Nov 7, 2023
1 parent e36bcd3 commit 51cbcc1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ actor ContentBlockerManager {
return .generic(genericType)
}

guard domain.isShieldExpected(.AdblockAndTp, considerAllShieldsOption: true) else {
return Set(genericRuleLists)
}

// Get rule lists for filter lists
let filterLists = FilterListStorage.shared.filterLists
let additionalRuleLists = filterLists.compactMap { filterList -> BlocklistType? in
Expand Down

0 comments on commit 51cbcc1

Please sign in to comment.