Record a user's Chrome autofill profile and Passwords in the Recorder.
Chrome extensions do not have direct access to a user's Chrome profile information, information such as saved passwords and autofill profiles. However, the Action Recorder Extension may derive a user's saved passwords and autofill profile by observing the password fields, shipping info fields and payment fields that Chrome autofills. To land this change, I also had to change how the extension detects the Chrome Autofill action. Prior to this change, the extension detects Chrome Autofill using a combination of keydown and onchange event listeners. This strategy can distinguish user typing actions from Chrome autofill actions, but this stategy does not distinguish Chrome autofill actions from Page JavaScript changing input values. In this change, I switched the extension to using the method outlined in https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7 to detect Chrome autofill. Bug: 855284 Change-Id: I22283d5684237084ca2a8b95d9f4723be46b7746 Reviewed-on: https://chromium-review.googlesource.com/1208446 Commit-Queue: Yiming Zhou <uwyiming@google.com> Reviewed-by:Jared Saul <jsaul@google.com> Cr-Commit-Position: refs/heads/master@{#589653}
Showing
This diff is collapsed.
Please register or sign in to comment