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
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 {object} section Using section.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 18784
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. 7158
FormAutofillHandler.sys.mjs Handles profile autofill for a DOM Form element. 12763
FormAutofillHeuristics.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. 40271
FormAutofillNameUtils.sys.mjs 10801
FormAutofillSection.sys.mjs Examine the section is a valid section or not based on its fieldDetails or other information. This method must be overrided. @returns {boolean} True for a valid section, otherwise false 42576
FormAutofillUtils.sys.mjs 39425
FormStateManager.sys.mjs @type {WeakMap} mapping FormLike root HTML elements to FormAutofillHandler objects. 4578
HeuristicsRegExp.sys.mjs eslint-disable no-useless-concat 22977
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