[extension] Fields: a 2FA field in Firefox (autocomplete from the attribute); 0.22.1 #31
Reference in New Issue
Block a user
Delete Branch "fix/gecko-otp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Found by the first end-to-end run in Zen (Gecko 160): Gecko's
HTMLInputElement.autocompleteis''for a token it does not know, and it does not knowone-time-code. So in Firefox a 2FA field marked onlyautocomplete="one-time-code"got no Custos button, and the 2FA code was never offered there.getAttribute('autocomplete')), for the 2FA field, the username, and new/current passwords alike.inputmode=numeric) named or id'dcodecounts as a 2FA field too;type=numbercounts as a text field for the username.Self-review
The change only widens which fields get Custos's button; what may be filled where is still decided by the background and by Custos (origins from the browser,
fill_allowed). A page that names a fieldcodegets, at most, the 2FA code of its own site's login after a click.Tests
node tools/extension-test.mjs: 11 passed.