Autocomplete is too aggressive and overwrites values of hidden fields.
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
People
(Reporter: hweir, Unassigned)
References
Details
Updated•15 years ago
|
Comment 1•12 years ago
|
||
Comment 2•8 years ago
|
||
Comment 3•6 years ago
|
||
This is still reproducible on 75.0 (64-bit) on macOS 10.15.
The caching overrides the value set in HTML. I'm not sure what the minimal reproduction scenario might be, but the code is as follows:
<input type="hidden" name="field1" id="field1" size="180" value="test value" />
On initial page load this is fine, but after submitting, there's some JS that clears out the field. On every subsequent page reload, the field is restored as an empty value ( "" ), even though the HTML specifies it's value.
Closing and reopening the tab doesn't help.
Adding autocomplete="off"
fixes the issue, as mentioned above.
Comment 5•5 years ago
|
||
Is there any way to re-open it?
Comment 6•4 years ago
|
||
For reference - I was able to reproduce it and resolve it with autocomplete='off' at https://bugzilla.mozilla.org/show_bug.cgi?id=1667657 with firefox 80
Comment 7•4 years ago
|
||
Reopening per latest comments.
Comment 9•4 years ago
|
||
As mentioned in comment#6 this issue is still occurring for users. Closed Bug 1667657 as a duplicate of this one.
Updated•4 years ago
|
Comment 10•3 years ago
|
||
This is bad, folks.
If bugzilla allowed image uploads I'd upload for you a side-by-side (Firefox on the left, Chrome on the right) showing you Firefox corrupting a Ruby/Rails generated hidden field named "_method" that was SET to the string "patch" but which (only) Firefox mangled to be "5f4ledBRFGRYSUpaeJ29y-J0SX6KRSzbr1zSjVvgy1fhGmQAXXzsjLxdswyBtqopEnO6pQAaJTEFUJKXDVyisg"
Since you don't seem to support uploads here, I posted it on my blog at:
https://149362717.v2.pressablecdn.com/wp-content/uploads/2021/06/sidebyside.jpg
Pretty challenging for developers to debug why a form that worked perfectly - and still works perfectly on _any other browser than Firefox - just stops working?
FWIW I think closing/reopening the browser makes it go away for a little while.
FF 89.0.1 (64-bit) on Mac.
Comment 11•2 years ago
|
||
I can confirm that even hidden fields are autocompleted which can break site functionality
Comment 12•2 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Comment 13•2 years ago
|
||
Please reopen with attached HTML to reproduce the problem.
Description
•