Improve Autofill heuristic terms (#674)

Add "e-mail" and "login" as username terms and sort the lists.

Co-authored-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Fabian Henneke
2020-03-27 09:08:29 +01:00
committed by GitHub
parent b6730ac123
commit b21c032f31

View File

@@ -80,10 +80,10 @@ class FormField(
"search", "find", "captcha"
)
private val PASSWORD_HEURISTIC_TERMS = listOf(
"pass", "pwd", "pswd"
"pass", "pswd", "pwd"
)
private val USERNAME_HEURISTIC_TERMS = listOf(
"user", "name", "email"
"e-mail", "email", "login", "name", "user"
)
}