Name Description Size
AddressComponent.sys.mjs Class representing a collection of tokens extracted from a string. 30858
AddressMetaData.sys.mjs 107167
AddressMetaDataExtension.sys.mjs 11674
AddressMetaDataLoader.sys.mjs Load address meta data and extension into one object. @returns {object} An object containing address data object with properties from extension. 5345
AddressParser.sys.mjs eslint-disable no-useless-concat 7579
AddressRecord.sys.mjs eslint-disable no-useless-concat 3973
AutofillFormFactory.sys.mjs A factory to generate AutofillForm objects that represent a set of autofillable fields which aren't necessarily marked up with a <form> element. 1169
AutofillTelemetry.sys.mjs Building the extra keys object that is included in the Legacy Telemetry event `cc_form_v2` or `address_form` event and the Glean event `cc_form`, and `address_form`. It indicates the detected credit card or address fields and which method (autocomplete property, regular expression heuristics or fathom) identified them. @param {Array<object>} fieldDetails fieldDetails to extract which fields were identified and how @param {string} undetected Default value when a field is not detected: 'undetected' (Glean) and 'false' in (Legacy) @param {string} autocomplete Value when a field is identified with autocomplete property: 'autocomplete' (Glean), 'true' (Legacy) @param {string} regexp Value when a field is identified with regex expression heuristics: 'regexp' (Glean), '0' (Legacy) @param {boolean} includeMultiPart Include multi part data or not @returns {object} Extra keys to include in the form event 16401
CreditCardRecord.sys.mjs eslint-disable no-useless-concat 2381
CreditCardRuleset.sys.mjs Fathom ML model for identifying the fields of credit-card forms This is developed out-of-tree at https://github.com/mozilla-services/fathom- form-autofill, where there is also over a GB of training, validation, and testing data. To make changes, do your edits there (whether adding new training pages, adding new rules, or both), retrain and evaluate as documented at https://mozilla.github.io/fathom/training.html, paste the coefficients emitted by the trainer into the ruleset, and finally copy the ruleset's "CODE TO COPY INTO PRODUCTION" section to this file's "CODE FROM TRAINING REPOSITORY" section. 42304
FieldScanner.sys.mjs Represents the detailed information about a form field, including the inferred field name, the approach used for inferring, and additional metadata. 9439
FormAutofillHandler.sys.mjs Handles profile autofill for a DOM Form element. 32317
FormAutofillHeuristics.sys.mjs To help us classify sections that can appear only N times in a row. For example, the only time multiple cc-number fields are valid is when there are four of these fields in a row. Otherwise, multiple cc-number fields should be in separate sections. 37530
FormAutofillNameUtils.sys.mjs 10801
FormAutofillSection.sys.mjs To help us classify sections, we want to know what fields can appear multiple times in a row. Such fields, like `address-line{X}`, should not break sections. 19765
FormAutofillUtils.sys.mjs 44643
FormStateManager.sys.mjs @type {WeakMap} mapping FormLike root HTML elements to FormAutofillHandler objects. 2352
HeuristicsRegExp.sys.mjs eslint-disable no-useless-concat 23240
LabelUtils.sys.mjs This is a utility object to work with HTML labels in web pages, including finding label elements and label text extraction. 3619
PhoneNumber.sys.mjs 16087
PhoneNumberMetaData.sys.mjs This data was generated base on libphonenumber v8.4.1 via the script in https://github.com/andreasgal/PhoneNumber.js The XML format of libphonenumber has changed since v8.4.2 so we can only stay in this version for now. 67548
PhoneNumberNormalizer.sys.mjs 1717