When we determine whether the previous field is a credit card field,
we use a hard-coded field name list, which doesn't include credit card
fields like "cc-given-name", "cc-family-name"
This patch fixes this issue by using "isCreditCardField" API.
Differential Revision: https://phabricator.services.mozilla.com/D184086
When we determine whether the previous field is a credit card field,
we use a hard-coded field name list, which doesn't include credit card
fields like "cc-given-name", "cc-family-name"
This patch fixes this issue by using "isCreditCardField" API.
Differential Revision: https://phabricator.services.mozilla.com/D184086
This patch add a heursitic that when we see a name field (*-name), we check the
previous field, if the previous field is a credit card field, we change
the field to "cc-*-name".
Note. We don't check whether the "next" field is a cc field now. We can
extend the support in the future.
Differential Revision: https://phabricator.services.mozilla.com/D182337
This patch add a heursitic that when we see a name field (*-name), we check the
previous field, if the previous field is a credit card field, we change
the field to "cc-*-name".
Note. We don't check whether the "next" field is a cc field now. We can
extend the support in the future.
Differential Revision: https://phabricator.services.mozilla.com/D182337
This patch add a heursitic that when we see a name field (*-name), we check the
previous field, if the previous field is a credit card field, we change
the field to "cc-*-name".
Note. We don't check whether the "next" field is a cc field now. We can
extend the support in the future.
Differential Revision: https://phabricator.services.mozilla.com/D182337
Adding a shim that calls privilege StorageAccessAPI when tsn.ca using
the bellmedia.ca to perform the login.
We update the matching rule for the content script of crave.ca because it
also uses the bellmedia to do the login. With the updated matching rule,
we will only load the relevant shim script depending on the query string
of the login page.
Differential Revision: https://phabricator.services.mozilla.com/D180438
We do not intend to capture or autofill Card Security Code (CSC) fields.
The reason for adding "cc-csc" support is to enhance the accuracy of our heuristics.
For instance, if a credit card form contains a CSC field that aligns with both "cc-number"
and "cc-csc" heuristics, we would only classify the field as a "cc-number" field
without the application of the cc-csc heuristic. However, if we include the
cc-csc heuristic, we can use the results as a hint that this field might not be a "cc-number"
field.
Differential Revision: https://phabricator.services.mozilla.com/D179688
This commit modifies how we identify fields for address (city/state),
street address (including street-address and address-linex), and credit card
expiration information (cc-exp, cc-exp-month, cc-exp-year). The details are as follows:
- City/State Address Fields:
Introduced a new heuristic to identify address-level1 fields. When an address-level2
field is detected, the neighboring <select> element is considered to be an address-level1 field, if present.
- Street Address Fields (street-address, address-lineX):
* Implemented a heuristic to treat address-line2 or address-line3 as address-line1 when only
a single street address field is present.
* Enhanced the existing heuristic that identifies address-line1 fields on certain websites
that use the street-address as address-line1
* Introduced another heuristic that interprets a series of three consecutive street address
fields as address-line1, address-line2, and address-line3 respectively.
-Credit Card Expiry Fields:
* Removed the heuristic that resets cc-exp* fields to null when none of the other heuristics match.
* Introduced a heuristic that, when only one cc-exp* field is present, classifies that field
as a cc-exp field provided the preceding field is a credit card number field.
* Added another heuristic that, in the presence of two cc-exp* fields, interprets them as
cc-exp-month and cc-exp-year respectively if the field before them is a credit card number field.
Differential Revision: https://phabricator.services.mozilla.com/D180693