form autofill for address elements still prompted to save on fields with autocomplete="none" attribute
Categories
(Toolkit :: Form Autofill, defect)
Tracking
()
People
(Reporter: simon.hewison, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0
Steps to reproduce:
Design an HTML form that gathers address information that is not related to the user, not a delivery address, not a home or work address or anything like that. Let's say it's something like an address of an architecturally interesting building they're analysing. Prompting to save for autocompletion is a distraction from the task at hand.
On the input fields, set the autocomplete="none" attribute as per Mozilla's own documentation.
<input type="text" name="road" value="" autocomplete="off">
<input type="text" name="town" value="" autocomplete="off">
<input type="text" name="postcode" value="" autocomplete="off">
ref. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete
Actual results:
Firefox prompts the user if they want to save that address in their user profile on form submission.
Expected results:
If the field itself doesn't want to be autofilled, it should itself not be an autofill source data suggestion.
There is no hint as to what section or grouping that the browser should remember it as part of, in fact, the form explicitly states that autocomplete is off for that field and it's inappropriate for form autofill.
Comment 1•7 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Toolkit::Form Autofill' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Reporter | ||
Comment 2•7 months ago
|
||
note, this only seems to happen if the user has no saved autofill addresses in their profile.
Comment 3•6 months ago
|
||
The severity field is not set for this bug.
:dimi, could you have a look please?
For more information, please visit BugBot documentation.
Comment 4•6 months ago
|
||
Hi Simon, thank you for filing the bug! Ignoring the autocomplete attribute for address autofill was an intentional decision (see Bug 1754879).
The main reason is that we have seen many user reports where they expected an autofill prompt to appear but Firefox did not show one. Since Chrome also ignores the autocomplete attribute in similar cases, we decided to align with that behavior and ignore it as well.
Description
•