Bug 53312
Summary: | Back button populates data in wrong form fields | ||
---|---|---|---|
Product: | WebKit | Reporter: | Galen Hollins <ghollins> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Major | CC: | ap, beidson, beliveap, ghollins, tkent |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 | ||
Bug Depends on: | |||
Bug Blocks: | 23346 |
Galen Hollins
On Safari/Chrome, but not Firefox, the following problem occurs, which can ultimately cause data corruption (this has happened to me already in one of my sites).
Here is an example:
http://jsfiddle.net/rwaldron/UvmDv/7/
Here is a more complete description of the problem:
http://stackoverflow.com/questions/4831785/back-button-bug-in-chrome-safari
Thanks,
Galen
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Is this a duplicate of bug 23346?
Kent Tamura
(In reply to comment #1)
> Is this a duplicate of bug 23346?
This is a part of Bug 23346. It might be possible to make a workaround of this issue without a fundamental fix for Bug 23346.
Galen Hollins
Yes, this does seem to be part of bug 23346. There is a workaround that I was able to do in my code, which is to make sure that all elements have BOTH an "id" and a "name" attribute (each with the same value). That way the browser doesn't get confused about what form elements are what. I've posted the jsfiddle link test case on the other bug, just for reference.
I am however concerned that the other but has an importance of "Normal". This bug has caused data corruption in one of my apps (via the back, then resubmit pattern), and therefore I think this problem should be classified as "Major". If it was merely a view-layer problem, things would be different, but this bug actually changes form fields, that in many cases may get resubmitted.
Galen Hollins
*** This bug has been marked as a duplicate of bug 23346 ***
Kent Tamura
*** Bug 56937 has been marked as a duplicate of this bug. ***