From 6206850eb298f554b7ce9a1cd9adb6a392ff1e54 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Thu, 4 Mar 2021 08:10:21 +0100 Subject: Mark Chrome as reliably fillable and saveable (#1338) * Mark Chrome as reliably fillable and saveable * Mention Autofill improvements in CHANGELOG --- CHANGELOG.md | 1 + .../androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80166c65..a1aed4f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- Autofill now works much more reliably in Chrome 89 and later, including support for saving passwords if no accessibility service is enabled. - Pressing the back button in the navigation bar and the one in the toolbar behaved differently - Editing a password allowed accidentally overwriting an existing one - App shortcuts would never update once the first 4 were set diff --git a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt index f75d00fb..e244e2c5 100644 --- a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt +++ b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt @@ -146,6 +146,7 @@ private val BROWSER_SAVE_FLAG = mapOf( @RequiresApi(Build.VERSION_CODES.O) private val BROWSER_SAVE_FLAG_IF_NO_ACCESSIBILITY = mapOf( + "com.android.chrome" to SaveInfo.FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE, "com.chrome.beta" to SaveInfo.FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE, "com.chrome.canary" to SaveInfo.FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE, "com.chrome.dev" to SaveInfo.FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE, @@ -181,7 +182,6 @@ internal fun getBrowserAutofillSupportInfoIfTrusted( } private val FLAKY_BROWSERS = listOf( - "com.android.chrome", "org.bromite.bromite", "org.ungoogled.chromium.stable", "com.kiwibrowser.browser", -- cgit v1.2.3