Description[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
Committed: https://crrev.com/401f3492b9eaac6a3d964b7d5147f1e532fa95dc
Cr-Commit-Position: refs/heads/master@{#291734}
Patch Set 1 : #
Total comments: 4
Patch Set 2 : Incorporated review comments and code indentation. #
Messages
Total messages: 9 (0 generated)
|