session restore is restoring old form field data from different pages on the same site when pushState is used to navigate
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr68 | --- | unaffected |
| firefox75 | --- | wontfix |
| firefox76 | --- | wontfix |
| firefox77 | --- | fix-optional |
People
(Reporter: jon, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
In an existing website that uses Turbolinks, I recently (v75) started to notice form fields begin to be filled in with values from similar form fields on different, prior visited urls.
A simple example is https://horse-eastern-coral.glitch.me/index.html if you do the following:
- view index.html and select a value from the dropdown (like "Mustard")
- refresh the page; prior value is filled in
- navigate to one.html
- refresh the page; prior value from index is filled in
- (optional) navigate to two.html which pre-selects
Barbecuefrom the html - refresh the page; prior value from index is filled in
More info can be found at https://github.com/turbolinks/turbolinks/issues/536 where it was assumed there may be an issue with Firefox's cache performing differently when history state is pushed/replaced.
I did not notice an issue until recently and I'm on Mac Catalina 10.15.4
Actual results:
A selected dropdown value from an old page is pre-filled as the <select>'d option even if I am on a different url.
Expected results:
I would not expect any of the situations to pre-fill an existing form field value after I refresh the page. It would probably be fine for the value to be pre-selected on the same url (step 2), but I would not at all expect that value to show up on other pages (step 4 and 6).
Comment 1•5 years ago
|
||
Resetting severity to default of --.
Comment 2•5 years ago
|
||
Hello! I have managed to reproduce this issue following the STR provided in the the description on all OS's and using Firefox 77.0a1(2020-04-21), Firefox 75.0 and Firefox 76.0b6. I will mark the flags accordingly and set a component for this issue so one of our developers could look more into it. If it's not the right component please feel free to change it to an appropriate one.
Comment 3•5 years ago
|
||
I don't know if this code falls under session restore of the DOM side so starting here for now.
(In reply to jon from comment #0)
I would not expect any of the situations to pre-fill an existing form field value after I refresh the page.
It would probably be fine for the value to be pre-selected on the same url (step 2),
Yes, that is intentional and the proper way to prevent that is to use autocomplete=off but keep in mind that there are cases a user may need to reload where having the field data preserved would be useful.
but I would not at all expect that value to show up on other pages (step 4 and 6).
Yeah, that seems surprising.
It would be good to know if this is a regression by running mozregression.
Comment 6•5 years ago
|
||
Thank you very much. The screenshot points to bug 1553705.
Comment 7•5 years ago
|
||
Perhaps this is actually a dupe of bug 1618269… I didn't dig deep enough to see.
Updated•5 years ago
|
Comment 9•5 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is -- (non,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)
Updated•5 years ago
|
Description
•