diff --git a/Package.resolved b/Package.resolved index f4bee6d0f..3b8df7b44 100644 --- a/Package.resolved +++ b/Package.resolved @@ -23,8 +23,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/duckduckgo/duckduckgo-autofill.git", "state" : { - "revision" : "88982a3802ac504e2f1a118a73bfdf2d8f4a7735", - "version" : "16.0.0" + "revision" : "47c26dc32b94cdbcef3e6157497147917678c25c", + "version" : "16.1.0" } }, { diff --git a/Package.swift b/Package.swift index 8611970a9..6db4de3eb 100644 --- a/Package.swift +++ b/Package.swift @@ -50,7 +50,7 @@ let package = Package( .library(name: "PrivacyStats", targets: ["PrivacyStats"]), ], dependencies: [ - .package(url: "https://github.com/duckduckgo/duckduckgo-autofill.git", exact: "16.0.0"), + .package(url: "https://github.com/duckduckgo/duckduckgo-autofill.git", exact: "16.1.0"), .package(url: "https://github.com/duckduckgo/GRDB.swift.git", exact: "2.4.2"), .package(url: "https://github.com/duckduckgo/TrackerRadarKit", exact: "3.0.0"), .package(url: "https://github.com/duckduckgo/sync_crypto", exact: "0.3.0"), diff --git a/Sources/BrowserServicesKit/ContentScopeScript/ContentScopeUserScript.swift b/Sources/BrowserServicesKit/ContentScopeScript/ContentScopeUserScript.swift index 8c6ed973c..71285d398 100644 --- a/Sources/BrowserServicesKit/ContentScopeScript/ContentScopeUserScript.swift +++ b/Sources/BrowserServicesKit/ContentScopeScript/ContentScopeUserScript.swift @@ -82,6 +82,8 @@ public struct ContentScopeFeatureToggles: Encodable { public let unknownUsernameCategorization: Bool + public let partialFormSaves: Bool + // Explicitly defined memberwise init only so it can be public public init(emailProtection: Bool, emailProtectionIncontextSignup: Bool, @@ -92,7 +94,8 @@ public struct ContentScopeFeatureToggles: Encodable { passwordGeneration: Bool, inlineIconCredentials: Bool, thirdPartyCredentialsProvider: Bool, - unknownUsernameCategorization: Bool) { + unknownUsernameCategorization: Bool, + partialFormSaves: Bool) { self.emailProtection = emailProtection self.emailProtectionIncontextSignup = emailProtectionIncontextSignup @@ -104,6 +107,7 @@ public struct ContentScopeFeatureToggles: Encodable { self.inlineIconCredentials = inlineIconCredentials self.thirdPartyCredentialsProvider = thirdPartyCredentialsProvider self.unknownUsernameCategorization = unknownUsernameCategorization + self.partialFormSaves = partialFormSaves } enum CodingKeys: String, CodingKey { @@ -121,6 +125,7 @@ public struct ContentScopeFeatureToggles: Encodable { case inlineIconCredentials = "inlineIcon_credentials" case thirdPartyCredentialsProvider = "third_party_credentials_provider" case unknownUsernameCategorization = "unknown_username_categorization" + case partialFormSaves = "partial_form_saves" } } diff --git a/Tests/BrowserServicesKitTests/ContentScopeScriptTests/ContentScopePropertiesMocks.swift b/Tests/BrowserServicesKitTests/ContentScopeScriptTests/ContentScopePropertiesMocks.swift index 3a14c732c..b7c841c1f 100644 --- a/Tests/BrowserServicesKitTests/ContentScopeScriptTests/ContentScopePropertiesMocks.swift +++ b/Tests/BrowserServicesKitTests/ContentScopeScriptTests/ContentScopePropertiesMocks.swift @@ -28,5 +28,6 @@ extension ContentScopeFeatureToggles { passwordGeneration: true, inlineIconCredentials: true, thirdPartyCredentialsProvider: false, - unknownUsernameCategorization: true) + unknownUsernameCategorization: true, + partialFormSaves: true) } diff --git a/Tests/BrowserServicesKitTests/Fingerprinting/FingerprintingReferenceTests.swift b/Tests/BrowserServicesKitTests/Fingerprinting/FingerprintingReferenceTests.swift index e908e471c..53efebbe5 100644 --- a/Tests/BrowserServicesKitTests/Fingerprinting/FingerprintingReferenceTests.swift +++ b/Tests/BrowserServicesKitTests/Fingerprinting/FingerprintingReferenceTests.swift @@ -219,7 +219,8 @@ final class FingerprintingReferenceTests: XCTestCase { passwordGeneration: false, inlineIconCredentials: false, thirdPartyCredentialsProvider: false, - unknownUsernameCategorization: false) + unknownUsernameCategorization: false, + partialFormSaves: false) let contentScopeProperties = ContentScopeProperties(gpcEnabled: false, sessionKey: UUID().uuidString,