Files
IronFox/patches/disable-autofill.patch
celenity 63a99045b4 WIP: v141.0
Signed-off-by: celenity <celenity@celenity.dev>
2025-07-22 08:21:43 -04:00

104 lines
5.4 KiB
Diff

diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt
index 8913d9f230..1d074345b8 100644
--- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt
+++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt
@@ -1381,12 +1381,12 @@ class Settings(private val appContext: Context) : PreferencesHolder {
var shouldPromptToSaveLogins by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_save_logins),
- default = true,
+ default = false,
)
var shouldAutofillLogins by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_autofill_logins),
- default = true,
+ default = false,
)
/**
@@ -1709,7 +1709,7 @@ class Settings(private val appContext: Context) : PreferencesHolder {
*/
var shouldAutofillCreditCardDetails by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_credit_cards_save_and_autofill_cards),
- default = true,
+ default = false,
)
/**
@@ -1720,7 +1720,7 @@ class Settings(private val appContext: Context) : PreferencesHolder {
*/
var shouldAutofillAddressDetails by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_addresses_save_and_autofill_addresses),
- default = true,
+ default = false,
)
/**
diff --git a/mobile/android/fenix/app/src/main/res/xml/autofill_preferences.xml b/mobile/android/fenix/app/src/main/res/xml/autofill_preferences.xml
index aa1efa9665..1ccfc1fefa 100644
--- a/mobile/android/fenix/app/src/main/res/xml/autofill_preferences.xml
+++ b/mobile/android/fenix/app/src/main/res/xml/autofill_preferences.xml
@@ -10,7 +10,7 @@
android:title="@string/preferences_addresses">
<SwitchPreference
- android:defaultValue="true"
+ android:defaultValue="false"
android:key="@string/pref_key_addresses_save_and_autofill_addresses"
android:summary="@string/preferences_addresses_save_and_autofill_addresses_summary_2"
android:title="@string/preferences_addresses_save_and_autofill_addresses_2" />
@@ -23,7 +23,7 @@
android:layout="@layout/preference_cat_style"
android:title="@string/preferences_credit_cards_2">
<SwitchPreference
- android:defaultValue="true"
+ android:defaultValue="false"
android:key="@string/pref_key_credit_cards_save_and_autofill_cards"
android:summary="@string/preferences_credit_cards_save_and_autofill_cards_summary_2"
android:title="@string/preferences_credit_cards_save_and_autofill_cards_2" />
diff --git a/mobile/android/fenix/app/src/main/res/xml/credit_cards_preferences.xml b/mobile/android/fenix/app/src/main/res/xml/credit_cards_preferences.xml
index 00caf8e1bb..b4efbb89a5 100644
--- a/mobile/android/fenix/app/src/main/res/xml/credit_cards_preferences.xml
+++ b/mobile/android/fenix/app/src/main/res/xml/credit_cards_preferences.xml
@@ -5,7 +5,7 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<SwitchPreference
- android:defaultValue="true"
+ android:defaultValue="false"
android:key="@string/pref_key_credit_cards_save_and_autofill_cards"
android:summary="@string/preferences_credit_cards_save_and_autofill_cards_summary_2"
android:title="@string/preferences_credit_cards_save_and_autofill_cards_2" />
diff --git a/mobile/android/fenix/app/src/main/res/xml/logins_preferences.xml b/mobile/android/fenix/app/src/main/res/xml/logins_preferences.xml
index 1a8810eca7..1f3ad71295 100644
--- a/mobile/android/fenix/app/src/main/res/xml/logins_preferences.xml
+++ b/mobile/android/fenix/app/src/main/res/xml/logins_preferences.xml
@@ -9,7 +9,7 @@
android:summary="@string/preferences_passwords_save_logins_ask_to_save"
android:title="@string/preferences_passwords_save_logins_2" />
<SwitchPreference
- android:defaultValue="true"
+ android:defaultValue="false"
android:key="@string/pref_key_autofill_logins"
android:title="@string/preferences_passwords_autofill2"
android:summary="@string/preferences_passwords_autofill_description" />
diff --git a/mobile/android/fenix/app/src/main/res/xml/save_logins_preferences.xml b/mobile/android/fenix/app/src/main/res/xml/save_logins_preferences.xml
index 3fc38f2070..1c88040284 100644
--- a/mobile/android/fenix/app/src/main/res/xml/save_logins_preferences.xml
+++ b/mobile/android/fenix/app/src/main/res/xml/save_logins_preferences.xml
@@ -4,11 +4,11 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<org.mozilla.fenix.settings.RadioButtonPreference
- android:defaultValue="true"
+ android:defaultValue="false"
android:key="@string/pref_key_save_logins"
android:title="@string/preferences_passwords_save_logins_ask_to_save" />
<org.mozilla.fenix.settings.RadioButtonPreference
- android:defaultValue="false"
+ android:defaultValue="true"
android:key="@string/pref_key_never_save_logins"
android:title="@string/preferences_passwords_save_logins_never_save" />
</PreferenceScreen>