You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Let a TextBox opt out of platform autofill on Skia targets #26664
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:
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