Disable UrlBar augmented Autofill on Android Q+
Marks the UrlBar as having Autofill type NONE, which disables both standard and augmented Autofill from triggering when the user interacts with the URl bar. Android Q introduced the concept of a system-level augmented Autofill service that replies to fill requests if the user-level standard Autofill service is unable to, e.g., when the request is triggered on a view labeled with importantForAutofill="no". Once an Autofill session is captured by the augmented Autofill service, the standard Autofill service is no longer invoked until the session ends or the user initiates a manual Autofill request. As Chrome's URL bar is marked not important for Autofill to prevent third-party Autofill services from showing fill UI on it, interactions with it frequently trigger augmented Autofill, which results in the user-configured Autofill service no longer being called on web forms. Moreover, since views representing web form fields are not native Android views, they also lack the context menu action with which the user could perform a manual Autofill request and escape the augmented Autofill capture. With an Autofill type of AUTOFILL_TYPE_NONE, the URL bar no longer triggers any Autofill actions, which prevents this scenario. A side effect is that the manual Autofill action on the URL bar is no longer available. However, as real-world Autofill services were found to offer no fill suggestions when invoked manually on current versions of Chrome, this is only a theoretical concern. Bug: 1103555 Change-Id: Ib4089a33db4c674175ccb5ce381dbd703428237c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522078Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Commit-Queue: Fabian Henneke <fabian.henneke@gmail.com> Cr-Commit-Position: refs/heads/master@{#827588}
Showing
Please register or sign in to comment