Skip to content

Let a TextBox opt out of platform autofill on Skia targets #26664

Open

Description

@Xiaoy312

What would you like to be added? 💡

A way for an app to exclude a TextBox / PasswordBox (or every input under a container) from the platform autofill framework, the equivalent of android:importantForAutofill="no" on a native Android EditText.

With #26609, Skia Android exposes every visible TextBox of the window to the autofill service (Google, 1Password, ...), with hints derived from the password mode and InputScope. There is no way to keep a field out of it.

Possible shape, next to the existing Uno-specific attached properties:

<TextBox xmlns:uxc="using:Uno.UI.Xaml.Controls"
         uxc:TextBoxExtensions.IsAutofillEnabled="False" />
  • bool, default true, inherited (like TextBoxExtensions.ShowKeyboardDismissButton), so a page or container can opt out every input below it.
  • Android: opted-out fields are left out of the autofill virtual structure and never filled.
  • iOS: could map to an empty TextContentType / disabling the password autofill for that field.

WinUI has no equivalent: InputScopeNameValue has no Private value, so it can't be expressed with InputScope.

Why is this needed? 🤔

Some fields must never be offered autofill or end up in a save request: search boxes, chat inputs, one-time codes the app handles itself, fields holding data the app doesn't want a third-party autofill service to see. Native Android and iOS apps can opt such fields out; Uno apps on Skia currently can't.

For which platforms 📱💻🖥️

Android, iOS

Anything else we need to know? 💬

Follow-up of #26609 (Android autofill for Skia text inputs, part of #26610). A public API to set autofill hints explicitly (instead of deriving them from InputScope) could share the same attached-property class.

Activity

  1. added
    kind/enhancement
    triage/untriaged
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions