Commit 3da56eef authored by brizental's avatar brizental Committed by clairehurst
Browse files

TB 41197: [android] Disable autofill

Firefox is an Autofill service. From the Android docs:

> An autofill service is an app that makes it easier for users to fil
> out forms by injecting data into the views of other apps. Autofill
> services can also retrieve user data from the views in an app and
> store it for use at a later time. Autofill services are usually
> provided by apps that manage user data, such as password managers.

Tor Browser is not an autofill service. All of the autofill backend
is disabled at build time, since it lives in application-services.

This commit disabled the client side of autofill.
parent 139912f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ import mozilla.components.support.base.log.logger.Logger
class AutofillUseCases(
    @VisibleForTesting sdkVersion: Int = Build.VERSION.SDK_INT,
) {
    private val isAutofillAvailable = sdkVersion >= Build.VERSION_CODES.O
    private val isAutofillAvailable = false
    private val logger = Logger("AutofillUseCases")

    /**
+0 −13
Original line number Diff line number Diff line
@@ -686,19 +686,6 @@
            android:name=".messaging.NotificationClickedReceiverActivity"
            android:exported="false" />

        <service android:name=".autofill.AutofillService"
            tools:targetApi="o"
            android:exported="true"
            android:label="@string/app_name"
            android:permission="android.permission.BIND_AUTOFILL_SERVICE">
            <intent-filter>
                <action android:name="android.service.autofill.AutofillService"/>
            </intent-filter>
            <meta-data
                android:name="android.autofill"
                android:resource="@xml/autofill_configuration" />
        </service>

        <service android:name=".media.MediaSessionService"
            android:foregroundServiceType="mediaPlayback"
            android:exported="false" />