[Autofill Android] Suppress suggestions for exact matches
If a field in a filled form is focused, the shown suggestions match the field contents. When the shown suggestion is an exact match, clicking it will fill the exact same content again -- effectively, it's a no-op. This CL hides exact matches on Android. This is harmless unless label disambiguation is enabled. Now, a sublabel seemingly differentiates between multiple suggestions since their sublabels differ. But clicking any of the suggestions will again only fill the selected field (which is still a no-op). If a user is presented with multiple different options, they will expect that each option fills the entire dataset that a label represents. Instead, they get multiple, differently labeled no-ops. For Android, disambiguation labels are very prominent, especially in the keyboard accessory which hosts them. Therefore, it makes sense to hide the no-op suggestions completely. For Desktop, label disambiguation isn't launched yet and the dataset merging algorithm aggressively filters the datasets to one single suggestion. This means the issue isn't very prominent. Hiding the labels would actually have a negative side-effect: there would be no access to the "Clear Form" option (which currently isn't visible on Android). Bug: 1000039 Change-Id: Ibe43617202003900b3fa0f80259906d8467993eb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1787598 Commit-Queue: Friedrich [CET] <fhorschig@chromium.org> Reviewed-by:Vadym Doroshenko <dvadym@chromium.org> Cr-Commit-Position: refs/heads/master@{#693713}
Showing
This diff is collapsed.
Please register or sign in to comment