Bug 53312 - Back button populates data in wrong form fields
Summary: Back button populates data in wrong form fields
Status: RESOLVED DUPLICATE of bug 23346
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Major
Assignee: Nobody
URL:
Keywords:
: 56937 (view as bug list)
Depends on:
Blocks: 23346
  Show dependency treegraph
 
Reported: 2011-01-28 10:55 PST by Galen Hollins
Modified: 2011-03-23 18:56 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Galen Hollins 2011-01-28 10:55:58 PST
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
Comment 1 Alexey Proskuryakov 2011-01-29 00:54:46 PST
Is this a duplicate of bug 23346?
Comment 2 Kent Tamura 2011-01-30 23:39:02 PST
(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.
Comment 3 Galen Hollins 2011-01-31 09:24:04 PST
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.
Comment 4 Galen Hollins 2011-01-31 09:24:21 PST

*** This bug has been marked as a duplicate of bug 23346 ***
Comment 5 Kent Tamura 2011-03-23 18:56:02 PDT
*** Bug 56937 has been marked as a duplicate of this bug. ***