Open Bug 1899088 Opened 5 months ago Updated 4 months ago

Update two consecutive cc-name fields to cc-given-name/cc-last-name

Categories

(Toolkit :: Form Autofill, task, P3)

task

Tracking

()

People

(Reporter: dimi, Unassigned)

References

(Blocks 3 open bugs)

Details

Currently our cc-name parsing heuristic doesn't support parsing "cc-given-name" and "cc-family-name". So when we found two consecutive cc-name fields, we will treat them as separate autofill setions. I think what we can do is:

  1. Support parsing cc-xxx-name in fathom or in regexp
  2. Update cc-name to cc-given-name/cc-family-name in _parseCreditCardNameFields(:
  • (A) When seeing two consecutive cc-name fields, run given-name and family-name regexpression to update the cc-name to cc-xxx-name + cc-yyy-name
  • (B) If the above heuristic doesn't find give-name + family-name or family-name + given-name. Update the cc-name to cc-name-1 and cc-name-2. Similar to the solution in Bug 1849137 Comment 5.

Solution 1 is not a trivial task, I think we can start with implementing solution 2.A

Blocks: 1897708
Blocks: 1897419
Blocks: 1897398
Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.