Closed Bug 207312 Opened 22 years ago Closed 22 years ago

Forms in frames don't remember values

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.4final

People

(Reporter: jag+mozilla, Assigned: jag+mozilla)

References

Details

(Keywords: regression, Whiteboard: [adt1][ETA needed] [works: 2002-04-11, broken: 2002-04-d on trunk by bug 203960, need patch for 1.4branch18] Fixe)

Attachments

(3 files)

Reassign as needed. When you fill in a form in a page, go to another page, then hit the back button, the values you filled in / changes you made should be restored. If you do the same for a form in a frame, the values are lost. Attaching testcase.
Attached file frameset for testcase
Steps to reproduce: 1) load attachment 124326 [details] 2) type something in both text fields (though one should suffice) 3) go to another page or hit back to go to this page 4) hit back (or forward) to go back to the attachment Result: the text fields are empty Expected result: the text fields (still) have what you typed To verify nothing funny is going on, try the above with attachment 124325 [details] (just the frame) and see how the above steps do give the expected result.
this isn't a problem in ns7.02, but turns out it's a regression on the trunk from over a year ago. looking at commercial linux builds, it worked in 2002.04.08.08 but is broken in 2002.04.18.14.
John, Radha, any ideas? I think this is pretty major and we should fix this.
adt: nsbeta1+/adt1 Please add an ETA indicating when this is expected to land on the 1.4 branch. Thanks.
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt1][ETA needed]
Flags: blocking1.4?
Target Milestone: --- → mozilla1.4final
Hmm, this WORKSFORME (todays commercial trunk build, Win2k). Am I missing something obvious?
Oddness. Let me find out when (and how) this got fixed.
Ok, it appears that jag's fix for bug 203960 fixed this on the trunk. Over to him for possibly fixing this on the branch as well.
Assignee: dom_bugs → jaggernaut
Yep, my patch for 203960 fixed this too.
Depends on: 203960
Comment on attachment 124850 [details] [diff] [review] Correctly save state (forms, scroll position) when a document is being torn down r=jkeiser,adamlock,varga sr=jst,hewitt Carried forward from bug 203960.
Attachment #124850 - Flags: superreview+
Attachment #124850 - Flags: review+
Attachment #124850 - Flags: approval1.4?
Whiteboard: [adt1][ETA needed] → [adt1][ETA needed] Fixed on trunk by bug 203960, need patch for 1.4branch
From looking at this patch, again, I'd say it's safe to take. Most of the changes here are moving code around, the real changes are really small, and as far as I can tell, safe. These changes have been on the trunk for several days now, and no problems have been reported.
Do we know what regressed this and whether or not there's a simpler fix?
Per jag's request: For builds that I still have around, the testcase in comment #3 works with a win32 build of 2002-04-11-06-trunk, but does not work with a (gmake) build of 2002-04-23-08-trunk. So that narrows the window on the trunk somewhat. Sorry I don't have any more builds on the trunk during that period of time.
It's also broken in 0416 builds so that closes the window a bit more.
Whiteboard: [adt1][ETA needed] Fixed on trunk by bug 203960, need patch for 1.4branch → [adt1][ETA needed] [works: 2002-04-11, broken: 2002-04-16] Fixed on trunk by bug 203960, need patch for 1.4branch
oops, ignore me. I was looking at the wrong year.
Whiteboard: [adt1][ETA needed] [works: 2002-04-11, broken: 2002-04-16] Fixed on trunk by bug 203960, need patch for 1.4branch → [adt1][ETA needed] [works: 2002-04-11, broken: 2002-04-18] Fixed on trunk by bug 203960, need patch for 1.4branch
a=adt. Please land on branch and add fixed1.4 keyword.
Whiteboard: [adt1][ETA needed] [works: 2002-04-11, broken: 2002-04-18] Fixed on trunk by bug 203960, need patch for 1.4branch → [adt1][ETA needed] [works: 2002-04-11, broken: 2002-04-d on trunk by bug 203960, need patch for 1.4branch18] Fixe
Comment on attachment 124850 [details] [diff] [review] Correctly save state (forms, scroll position) when a document is being torn down a=asa (on behalf of drivers) for checkin to the 1.4 branch.
Attachment #124850 - Flags: approval1.4? → approval1.4+
Checked in on 1.4branch.
Status: NEW → RESOLVED
Closed: 22 years ago
Keywords: fixed1.4
Resolution: --- → FIXED
Verified with 2003-06-16-05-1.4
Keywords: fixed1.4verified1.4
Component: DOM: HTML → DOM: Core & HTML
QA Contact: desale → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: