From ed1b0c4722cb74ab6fe7341daf67d4d1dbec89db Mon Sep 17 00:00:00 2001 From: Jacob Sikorski Date: Tue, 7 Nov 2023 11:51:05 -0700 Subject: [PATCH] Fix #8369: Disable content blockers when TP is disabled --- .../WebFilters/ContentBlocker/ContentBlockerManager.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Brave/WebFilters/ContentBlocker/ContentBlockerManager.swift b/Sources/Brave/WebFilters/ContentBlocker/ContentBlockerManager.swift index 1bf877422f4..c47e2a38259 100644 --- a/Sources/Brave/WebFilters/ContentBlocker/ContentBlockerManager.swift +++ b/Sources/Brave/WebFilters/ContentBlocker/ContentBlockerManager.swift @@ -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