Firefox autocompletes hidden form inputs after location.reload()
Categories
(Core :: DOM: Forms, defect, P3)
Tracking
()
People
(Reporter: adam.tomecek, Unassigned)
Details
Attachments
(1 file)
38.33 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36
Steps to reproduce:
My Rails page has form with hidden input to set HTTP submit method - put
in this example.
Re-loading the page with location.reload()
changes hidden input value - the form is not present on the page before reload.
- HTTP from the server is correct with
put
as a value for_method
hidden input - happens only in Firefox (tested on clean Mac version and WIndows version with some Extensions)
- full page reload solves the problem (not Control/Command + R)
- turning autocomplete for the form also solves the problem
Actual results:
After location.reload()
value in hidden form input is changed.
Expected results:
Hidden form input shouldn't be autocompleted/changed by browser.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•3 years ago
|
||
Pinging John since this is also form related:
Comment 3•3 years ago
|
||
Yes, I will take a look. Keep NI for tracking.
Comment 4•3 years ago
|
||
This can be worked around by tweaking the autocomplete preference .
Description
•