diff --git a/Package.resolved b/Package.resolved index 05a32e944..87b497f53 100644 --- a/Package.resolved +++ b/Package.resolved @@ -23,8 +23,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/duckduckgo/content-scope-scripts", "state" : { - "revision" : "62d5dc3d02f6a8347dc5f0b52162a0107d38b74c", - "version" : "5.8.0" + "revision" : "1bb3bc5eb565735051f342a87b5405d4374876c7", + "version" : "5.12.0" } }, { @@ -50,8 +50,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/duckduckgo/privacy-dashboard", "state" : { - "revision" : "620921fea14569eb00745cb5a44890d5890d99ec", - "version" : "3.4.0" + "revision" : "14b13d0c3db38f471ce4ba1ecb502ee1986c84d7", + "version" : "3.5.0" } }, { diff --git a/Package.swift b/Package.swift index eca256a78..1906f50ac 100644 --- a/Package.swift +++ b/Package.swift @@ -43,8 +43,8 @@ let package = Package( .package(url: "https://github.com/duckduckgo/TrackerRadarKit", exact: "1.2.2"), .package(url: "https://github.com/duckduckgo/sync_crypto", exact: "0.2.0"), .package(url: "https://github.com/gumob/PunycodeSwift.git", exact: "2.1.0"), - .package(url: "https://github.com/duckduckgo/privacy-dashboard", exact: "3.4.0"), - .package(url: "https://github.com/duckduckgo/content-scope-scripts", exact: "5.8.0"), + .package(url: "https://github.com/duckduckgo/privacy-dashboard", exact: "3.5.0"), + .package(url: "https://github.com/duckduckgo/content-scope-scripts", exact: "5.12.0"), .package(url: "https://github.com/httpswift/swifter.git", exact: "1.5.0"), .package(url: "https://github.com/duckduckgo/bloom_cpp.git", exact: "3.0.0"), .package(url: "https://github.com/duckduckgo/wireguard-apple", exact: "1.1.3"), diff --git a/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift b/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift index 16630553b..dfa67aad4 100644 --- a/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift +++ b/Sources/BrowserServicesKit/PrivacyConfig/Features/PrivacyFeature.swift @@ -46,6 +46,7 @@ public enum PrivacyFeature: String { case history case performanceMetrics case privacyPro + case sslCertificates } /// An abstraction to be implemented by any "subfeature" of a given `PrivacyConfiguration` feature. @@ -125,3 +126,8 @@ public enum PrivacyProSubfeature: String, Equatable, PrivacySubfeature { case isLaunchedOverride case isLaunchedOverrideStripe } + +public enum sslCertificatesSubfeature: String, PrivacySubfeature { + public var parent: PrivacyFeature { .sslCertificates } + case allowBypass +} diff --git a/Sources/PrivacyDashboard/ServerTrustViewModel.swift b/Sources/PrivacyDashboard/ServerTrustViewModel.swift index eb94d1db3..e26759f54 100644 --- a/Sources/PrivacyDashboard/ServerTrustViewModel.swift +++ b/Sources/PrivacyDashboard/ServerTrustViewModel.swift @@ -121,7 +121,8 @@ public struct ServerTrustViewModel: Encodable { public init?(serverTrust: SecTrust?) { guard let serverTrust = serverTrust else { - return nil + self.secCertificateViewModels = [] + return } let secTrust = serverTrust