-
-
Notifications
You must be signed in to change notification settings - Fork 128
feat(suggest): disable autocomplete #1208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Closes datenanfragen#1167 Set attributes to avoid autocompletion on the form This is to avoid private data to be submitted (e.g. via a Password Manager)
|
Thank you for making your first PR on We are glad about every contribution! Feel free to add yourself to our |
|
Wow, can you read my mind? I was just thinking about this the other day. In the end I discarded the idea since I thought that autocomplete is ignored by browsers anyways. But I guess this semantically more correct. :) Can anybody confirm if the vendor-specific attributes work? I am using keepass myself. Edit: Oh, ofc we had an old issue about this. :D |
|
@mal-tee Indeed I read minds 😄 (here what someone's mind added in an old issue). By the way, the website is awesome 💚 It looks like the deployment to try out is https://deploy-preview-1208--datenanfragen.netlify.app/ TODO (I guess it's ok if we don't try them all but at least 2)
|
|
I'm using 1Password and just gave this a quick test. Since the attributes currently aren't actually being set as @mal-tee said, I manually added them using the Firefox dev tools. The autocomplete still appeared both when setting |
|
I love specs edition (MDN):
So it could be that too, which is annoying. |
Co-authored-by: Benjamin Altpeter <acc-github@bn.al>
|
Just played around with this a little. If I set
|
|
While I was at it, I'll also do some more testing. LastPassOn master, without the attribute set:
When setting
If I do that, it does work:
|
|
Okay, to summarize:
I've pushed a comment changing the code to set the attributes on the individual inputs instead of on the form since that clearly works better. That commit also adds Bitwarden support. And I've added comments with the sources for the different attributes. |
|
Regarding autocomplete=off: I think the tag is practically deprecated by browser vendors. Do you see a way to fix this as a web page? |
|
So you think it isn't possible to stop Firefox and Chromium from autocompleting? |
|
Maybe I misunderstood. I don't think we can get the autocomplete attribute to work. I think we should set it, to take the high road though. :D
However, as Joël mentioned, we could and should try to obfuscate the form such that the heuristics do not match, i.e., assign some random garbage names and IDs. Ref. to., e.g.,
|
At least with KeePassXC I am not aware of autofills for personal data. I tried to test this by adding an email in my "Vorlagen" folder, but the browser extension won't trigger the autofill for our email field on /suggest. |
















Closes #1167
Set attributes to avoid autocompletion on the form This is to avoid private data to be submitted (e.g. via a Password Manager)