Loading build/e_patches/Browser-Disable-Android-native-autofill-by-default.patchdeleted 100644 → 0 +0 −26 Original line number Diff line number Diff line From f8bf29e61ad3cfe2e1561d8c55313443ee1ee1ef Mon Sep 17 00:00:00 2001 From: althafvly <althafvly@gmail.com> Date: Tue, 22 Aug 2023 06:16:40 +0000 Subject: Browser: Disable Android native autofill by default Signed-off-by: Saalim Quadri <danascape@gmail.com> --- components/autofill/core/common/autofill_prefs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/autofill/core/common/autofill_prefs.cc b/components/autofill/core/common/autofill_prefs.cc index 210c7118c0eaf..7d525d637f400 100644 --- a/components/autofill/core/common/autofill_prefs.cc +++ b/components/autofill/core/common/autofill_prefs.cc @@ -89,7 +89,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref(kAutofillCreditCardFidoAuthOfferCheckboxState, true); #endif - registry->RegisterBooleanPref(prefs::kAutofillAndroidEnabled, true); + registry->RegisterBooleanPref(prefs::kAutofillAndroidEnabled, false); registry->RegisterBooleanPref(prefs::kAutofillAndroidIncognitoEnabled, false); registry->RegisterIntegerPref(kAutocompleteLastVersionRetentionPolicy, 0); registry->RegisterStringPref(kAutofillUploadEncodingSeed, ""); -- 2.53.0 build/e_patches/Migrate-users-who-had-native-autofill-disabled.patch 0 → 100644 +49 −0 Original line number Diff line number Diff line From 5265fd69f9f1c73db4d20a07812b33733bcaec16 Mon Sep 17 00:00:00 2001 From: Nishith Khanna <nishith.khanna@gmail.com> Date: Fri, 24 Apr 2026 14:50:55 +0530 Subject: Migrate users who had native autofill disabled --- components/autofill/core/common/autofill_prefs.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/autofill/core/common/autofill_prefs.cc b/components/autofill/core/common/autofill_prefs.cc index 210c7118c0eaf..43bcecc079815 100644 --- a/components/autofill/core/common/autofill_prefs.cc +++ b/components/autofill/core/common/autofill_prefs.cc @@ -26,6 +26,9 @@ namespace { #if BUILDFLAG(IS_ANDROID) inline constexpr char kFacilitatedPaymentsPixAccountLinkingDeprecated[] = "facilitated_payments.pix_account_linking"; + +inline constexpr char kAutofillAndroidEnabledMigrationDone[] = + "autofill.android_autofill_enabled_migration_done"; #endif constexpr char kAutofillRanExtraDeduplication[] = "autofill.ran_extra_deduplication"; @@ -172,6 +175,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { #if BUILDFLAG(IS_ANDROID) registry->RegisterBooleanPref(kFacilitatedPaymentsPixAccountLinkingDeprecated, /*default_value=*/true); + registry->RegisterBooleanPref(kAutofillAndroidEnabledMigrationDone, false); #endif // BUILDFLAG(IS_ANDROID) registry->RegisterBooleanPref(kAutofillRanExtraDeduplication, false); // Don't add new prefs here. Add them before any deprecated prefs instead. @@ -183,6 +187,14 @@ void MigrateDeprecatedAutofillPrefs(PrefService* pref_service) { #if BUILDFLAG(IS_ANDROID) // Added 08/2025 pref_service->ClearPref(kFacilitatedPaymentsPixAccountLinkingDeprecated); + // Added 04/2026 - Re-enable autofill for users affected by the temporary + // default=false patch. Runs once; respects subsequent user changes. + if (!pref_service->GetBoolean(kAutofillAndroidEnabledMigrationDone)) { + if (!pref_service->GetBoolean(prefs::kAutofillAndroidEnabled)) { + pref_service->SetBoolean(prefs::kAutofillAndroidEnabled, true); + } + pref_service->SetBoolean(kAutofillAndroidEnabledMigrationDone, true); + } #endif // BUILDFLAG(IS_ANDROID) // Added 01/2026 pref_service->ClearPref(kAutofillRanExtraDeduplication); -- 2.53.0 build/e_patches_list.txt +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,6 @@ Handle-web-search-action-in-browser.patch Browser-Replace-default-tab-favicon.patch Browser-Spoof-as-Pixel-4a-by-default.patch Browser-Remove-broken-link-about-entries.patch Browser-Disable-Android-native-autofill-by-default.patch Browser-Enable-unified-autoplay-by-default.patch Use-thirdparty-autofill-by-default.patch Remove-some-privacy-UI-pref.patch Loading Loading @@ -68,3 +67,4 @@ Browser-Add-support-for-eOS-webapk.patch Enable-zoom-option-in-main-menu-by-default.patch Enable-JIT-by-default.patch Enable-local-backup-support.patch Migrate-users-who-had-native-autofill-disabled.patch Loading
build/e_patches/Browser-Disable-Android-native-autofill-by-default.patchdeleted 100644 → 0 +0 −26 Original line number Diff line number Diff line From f8bf29e61ad3cfe2e1561d8c55313443ee1ee1ef Mon Sep 17 00:00:00 2001 From: althafvly <althafvly@gmail.com> Date: Tue, 22 Aug 2023 06:16:40 +0000 Subject: Browser: Disable Android native autofill by default Signed-off-by: Saalim Quadri <danascape@gmail.com> --- components/autofill/core/common/autofill_prefs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/autofill/core/common/autofill_prefs.cc b/components/autofill/core/common/autofill_prefs.cc index 210c7118c0eaf..7d525d637f400 100644 --- a/components/autofill/core/common/autofill_prefs.cc +++ b/components/autofill/core/common/autofill_prefs.cc @@ -89,7 +89,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref(kAutofillCreditCardFidoAuthOfferCheckboxState, true); #endif - registry->RegisterBooleanPref(prefs::kAutofillAndroidEnabled, true); + registry->RegisterBooleanPref(prefs::kAutofillAndroidEnabled, false); registry->RegisterBooleanPref(prefs::kAutofillAndroidIncognitoEnabled, false); registry->RegisterIntegerPref(kAutocompleteLastVersionRetentionPolicy, 0); registry->RegisterStringPref(kAutofillUploadEncodingSeed, ""); -- 2.53.0
build/e_patches/Migrate-users-who-had-native-autofill-disabled.patch 0 → 100644 +49 −0 Original line number Diff line number Diff line From 5265fd69f9f1c73db4d20a07812b33733bcaec16 Mon Sep 17 00:00:00 2001 From: Nishith Khanna <nishith.khanna@gmail.com> Date: Fri, 24 Apr 2026 14:50:55 +0530 Subject: Migrate users who had native autofill disabled --- components/autofill/core/common/autofill_prefs.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/autofill/core/common/autofill_prefs.cc b/components/autofill/core/common/autofill_prefs.cc index 210c7118c0eaf..43bcecc079815 100644 --- a/components/autofill/core/common/autofill_prefs.cc +++ b/components/autofill/core/common/autofill_prefs.cc @@ -26,6 +26,9 @@ namespace { #if BUILDFLAG(IS_ANDROID) inline constexpr char kFacilitatedPaymentsPixAccountLinkingDeprecated[] = "facilitated_payments.pix_account_linking"; + +inline constexpr char kAutofillAndroidEnabledMigrationDone[] = + "autofill.android_autofill_enabled_migration_done"; #endif constexpr char kAutofillRanExtraDeduplication[] = "autofill.ran_extra_deduplication"; @@ -172,6 +175,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { #if BUILDFLAG(IS_ANDROID) registry->RegisterBooleanPref(kFacilitatedPaymentsPixAccountLinkingDeprecated, /*default_value=*/true); + registry->RegisterBooleanPref(kAutofillAndroidEnabledMigrationDone, false); #endif // BUILDFLAG(IS_ANDROID) registry->RegisterBooleanPref(kAutofillRanExtraDeduplication, false); // Don't add new prefs here. Add them before any deprecated prefs instead. @@ -183,6 +187,14 @@ void MigrateDeprecatedAutofillPrefs(PrefService* pref_service) { #if BUILDFLAG(IS_ANDROID) // Added 08/2025 pref_service->ClearPref(kFacilitatedPaymentsPixAccountLinkingDeprecated); + // Added 04/2026 - Re-enable autofill for users affected by the temporary + // default=false patch. Runs once; respects subsequent user changes. + if (!pref_service->GetBoolean(kAutofillAndroidEnabledMigrationDone)) { + if (!pref_service->GetBoolean(prefs::kAutofillAndroidEnabled)) { + pref_service->SetBoolean(prefs::kAutofillAndroidEnabled, true); + } + pref_service->SetBoolean(kAutofillAndroidEnabledMigrationDone, true); + } #endif // BUILDFLAG(IS_ANDROID) // Added 01/2026 pref_service->ClearPref(kAutofillRanExtraDeduplication); -- 2.53.0
build/e_patches_list.txt +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,6 @@ Handle-web-search-action-in-browser.patch Browser-Replace-default-tab-favicon.patch Browser-Spoof-as-Pixel-4a-by-default.patch Browser-Remove-broken-link-about-entries.patch Browser-Disable-Android-native-autofill-by-default.patch Browser-Enable-unified-autoplay-by-default.patch Use-thirdparty-autofill-by-default.patch Remove-some-privacy-UI-pref.patch Loading Loading @@ -68,3 +67,4 @@ Browser-Add-support-for-eOS-webapk.patch Enable-zoom-option-in-main-menu-by-default.patch Enable-JIT-by-default.patch Enable-local-backup-support.patch Migrate-users-who-had-native-autofill-disabled.patch