Form Autofill Heuristics¶
extensions.formautofill.heuristics.enabled is “true” in default. Set it to “false” could be useful to verify the result of autocomplete attribute.
element.getAutocompleteInfo() provides the parsed result of
autocomplete attribute which includes the field name and section information defined in autofill spec
This section is about how the regular expression is applied during parsing fields. All regular expressions are in heuristicsRegexp.js.
The parsers are for detecting the field type more accurately based on the near context of a field. Each parser uses
FieldScanner to traverse the interested fields with the result from the regular expressions and adjust each field type when it matches to a grammar.