[Autofill] Autofill incorrectly fills credit card expiration year in 2-digit fields.
With current implementation the on parsing the credit card field heuristics matches to the autofill::kExpirationYearRe and apparently it's assumes that a 4-digit credit card field (i.e. ServerFieldType CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR). This patch considers *maxlength* attribute in addition to see whether the feild is 2-digit input field or not. BUG=406247 Review URL: https://codereview.chromium.org/493393003 Cr-Commit-Position: refs/heads/master@{#291734}
Showing
Please register or sign in to comment