Expose passwords to compatibility Autofill
Android's Autofill framework interacts with Chrome via an Accessibility- based compatibility bridge. In order to allow it to see (and thus offer to save) unmasked passwords, these need to be exposed to Accessibility services. However, since Android O the policy for password fields is to preserve their current masking state in all matters related to Accessibility. With this change, passwords will be exposed to Accessibility unmasked if the only consumer of Accessibility information is the Autofill framework's CompatibilityBridge. As the bridge hooks directly into the AccessibilityManager via an AccessibilityPolicy, this situation can be detected easily by checking that the ENABLED_ACCESSIBILITY_SERVICES setting is empty. As a result, third-party Autofill services can save passwords in Chrome if the user does not have any Accessibility services enabled. These services can reliably check for this situation in the same way as done in this change and thus selectively offer save flows when they now the password will be unmasked. Bug: 1151614 Change-Id: I4644c977f65bf31fa4e1daa76a1e5d55cd0adada Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2552791Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by:
Michael Bai <michaelbai@chromium.org> Commit-Queue: Fabian Henneke <fabian.henneke@gmail.com> Cr-Commit-Position: refs/heads/master@{#833473}
Showing
Please register or sign in to comment