diff --git a/DuckDuckGo.xcodeproj/project.pbxproj b/DuckDuckGo.xcodeproj/project.pbxproj index 3a2a341221..97502669c2 100644 --- a/DuckDuckGo.xcodeproj/project.pbxproj +++ b/DuckDuckGo.xcodeproj/project.pbxproj @@ -9858,7 +9858,7 @@ repositoryURL = "https://github.com/DuckDuckGo/BrowserServicesKit"; requirement = { kind = exactVersion; - version = 162.0.0; + version = 163.0.0; }; }; 9F8FE9472BAE50E50071E372 /* XCRemoteSwiftPackageReference "lottie-spm" */ = { diff --git a/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 0d042f689d..0c6f75634d 100644 --- a/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -32,8 +32,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/DuckDuckGo/BrowserServicesKit", "state" : { - "revision" : "bd75e8eff671451c83522776bdd020c250fa97a4", - "version" : "162.0.0" + "revision" : "a51fed4db0c332cd4f02eafca2d9c7a178c0829a", + "version" : "163.0.0" } }, { diff --git a/DuckDuckGo/TabViewControllerBrowsingMenuExtension.swift b/DuckDuckGo/TabViewControllerBrowsingMenuExtension.swift index 6ae62b1a5e..c9cb80dd49 100644 --- a/DuckDuckGo/TabViewControllerBrowsingMenuExtension.swift +++ b/DuckDuckGo/TabViewControllerBrowsingMenuExtension.swift @@ -419,8 +419,8 @@ extension TabViewController { } private func onToggleProtectionAction(forDomain domain: String, isProtected: Bool) { - let config = ContentBlocking.shared.privacyConfigurationManager.privacyConfig - if isProtected && ToggleReportsFeature(privacyConfiguration: config).isEnabled { + let manager = ToggleReportsManager(feature: ToggleReportsFeature(manager: ContentBlocking.shared.privacyConfigurationManager)) + if isProtected && manager.shouldShowToggleReport { delegate?.tab(self, didRequestToggleReportWithCompletionHandler: { [weak self] didSendReport in self?.togglePrivacyProtection(domain: domain, didSendReport: didSendReport) })