Skip to content

Consider DOM autocomplete attribute values for form selection and field fill prioritisation #337

Description

@luckyrat

So far we only use this attribute to ignore new password fields since this is what was reliably implemented on the web previously.

It is likely that enough websites now use this attribute correctly, rather than maliciously, and we therefore want to try using this DOM information in our heuristics.

We can treat any text field as a high match for the following, in order of priority (match score):

username
email
name

password fields can match "current-password"

If a field has one of these values, we can also consider that it is a valid form to be considered, even if it otherwise would be ignored (for example, this would help where a sign-in form doesn't show a password field initially). In this situation, we will consider only "username" and "email" to reduce the number of false positives of other more general purpose data gathering forms.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions