Text entered into a Form Text area is lost.
Categories
(Core :: Layout: Form Controls, defect, P5)
Tracking
()
People
(Reporter: andyhurst_uk, Assigned: john)
References
(Blocks 1 open bug, )
Details
(Keywords: dataloss, testcase)
If I am entering text into a text area on a Form and I click the 'Back' or 'Forward' button or load another page and then return to the original page with the Text area, the text I had inserted has disappeared. I tried this with hotmail and yahoo mail. Thanks Andrew
Comment 1•22 years ago
|
||
Form Controls (or History ?)
Comment 2•22 years ago
|
||
Andrew, what build are you using? Does it happen on this bug page? Most often when this happens the site in question is doing it on purpose...
Reporter | ||
Comment 4•22 years ago
|
||
Hi, thanks for prompt feedback. I'm using Mozilla RC3 and I've just run my tests again in Netscape 6 and the problem does not occur. I'm not using a tabbed window either. The 'Additional Comments' box in which I'm typing now does not show the same problem. This is strange is it not? Looking at the page source from Yahoo mail (another one of my test pages that fails), the text area is definitely in a form. Here is the textaera declaration from the page source from hotmail: \<td colspan=2 align="center"\> \<textarea name="body" rows=15 cols=70 wrap="soft" style="width:600px" tabindex="7" title="Type Message Text"\> \</textarea\> \</td\> (I've escaped the tags manually). And for Yahoo mail: \<textarea name="Body" rows=15 cols=55 wrap=virtual\>\</textarea\> Hope this helps. I've just tried a form on the BBC news website in the 'Talking point' section. The problem does not occur here either. Also, I cleared my history and cache. Regards, Andrew
Comment 5•22 years ago
|
||
What does page info say about those hotmail/yahoo pages being cached or not? I suspect those sites mark the pages no-cache or no-store or something and I recall that screwing with our form state restoration.
Reporter | ||
Comment 6•22 years ago
|
||
Thats right, the failing pages show (not cached) in page info. However, this page I'm currently entering this comment into shows the same, yet it doesn't have the problem.
Comment 7•22 years ago
|
||
jkeiser, if autocomplete is turned off by the page using whatever magic invocation does it, do we still do history form state restoration?
Assignee | ||
Comment 8•22 years ago
|
||
I can now see that this is a sinister result of the assertions in bug 139568, and the problem is that the nsContentList for the form controls is not yet updated by the time we get in here. It can be fixed with a FlushPendingNotifications, but no one wants to see that happen--up up and away, pageload times!
Assignee | ||
Updated•22 years ago
|
Comment 9•22 years ago
|
||
I see this bug with build 2002083108 on Windows 98SE. It makes refining Bugzilla queries a real pain. Marking dataloss, and nominating for catfood and Mozilla 1.2.
Comment 11•22 years ago
|
||
is this the same as bug 163714? We really need these both fixed for 1.2alpha. John, what do you think?
Comment 12•22 years ago
|
||
John, you mentioned on IRC that this might be fixed. Can you take another look and help us get this off of our list with a WFM or a patch? Time is short on 1.2a and if this really is a problem we shouldn't ship it.
Assignee | ||
Comment 13•22 years ago
|
||
The Real Fix for this is going to be a long haul. I will look and see if there is a quick and dirty hack I can put in.
Assignee | ||
Updated•22 years ago
|
Comment 16•22 years ago
|
||
By the definitions on <http://bugzilla.mozilla.org/bug_status.html#severity> and <http://bugzilla.mozilla.org/enter_bug.cgi?format=guided>, crashing and dataloss bugs are of critical or possibly higher severity. Only changing open bugs to minimize unnecessary spam. Keywords to trigger this would be crash, topcrash, topcrash+, zt4newcrash, dataloss.
Comment 17•22 years ago
|
||
*** Bug 190392 has been marked as a duplicate of this bug. ***
Comment 18•21 years ago
|
||
*** Bug 172713 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Updated•15 years ago
|
Comment 19•6 years ago
|
||
Decreasing the priority as no update for the last 2 years on this bug. See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage about the priority meaning.
Comment 20•6 years ago
|
||
Pretty sure this got fixed for most simple cases when we changed state key generation a few years back, but whether it's fixed for hotmail in particular, hard to tell. Someone with a hotmail account would need to test.
Comment 21•3 years ago
|
||
(In reply to Boris Zbarsky [:bzbarsky] from comment #20)
whether it's fixed for hotmail in
particular, hard to tell. Someone with a hotmail account would need to test.
I'll bet Hotmail and Yahoo Mail have been rewritten several times since this was filed, and I would bet they do server-side saving of draft messages these days, so the actual sites' behavior is probably irrelevant to the original report.
comment 4 has the actual content from the original affected versions of the sites, which seem to just be basic <textarea> fields. I just wrote a local testcase with a <textarea>, and I tried entering some content and then navigating, and then navigating back. The content I'd entered was successfully preserved through this.
So, I think we can call this WORKSFORME.
Comment 22•3 years ago
|
||
I still see this behavior on a daily basis using Firefox 84.0.2 on Windows 10. It's not limited to hotmail and yahoo. It's pretty much any form on any site.
Comment 23•3 years ago
|
||
Thanks Jerry -- cold you post steps to reproduce the issue that you're seeing?
(e.g. can you reproduce it here at Bugzilla, to have an easy testcase that we all have access to? If so, how? In my experience, this generally works properly, so I'm curious where it's still broken.)
Simple example: if I visit https://paste.mozilla.org/ , type in some text, and then click the "About" link at the top-right (to navigate away), and then press my browser's back-button, then the text is faithfully restored.
Comment 24•3 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #23)
Simple example: if I visit https://paste.mozilla.org/ , type in some text, and then click the "About" link at the top-right (to navigate away), and then press my browser's back-button, then the text is faithfully restored.
You're very unlikely to experience on a simple form like that. Every time I experience it involves longer forms with multiple fields, like filling out shipping and billing info for a purchase. Going back will have some of the form fields blank. It's difficult to test without spamming somebody's site. I will try to replicate it on bugzilla.
Comment 25•3 years ago
|
||
Thanks! Would you mind filing a new bug for your issue, when you do come up with steps to reproduce? (and please CC and/or "needinfo" me on the bug report, when you do; and feel free to mention the bug number here)
That'll make for an easier-to-follow bug. The original issue here, with <textarea> and other form fields just 100% losing their contents whenever the browser navigates, was a real problem that was fixed at some point in the past (in the time since this was filed for mozilla-suite 1.3beta where this bug was filed 19 years ago). :) Any remaining issues in this neighborhood are likely to be something more specific/nuanced that would merit a dedicated bug-report.
Comment 26•3 years ago
|
||
(In reply to Jerry Baker from comment #24)
I will try to replicate it on bugzilla.
(Also, worth noting: Bugzilla might be a bad place to try to replicate it, if you're suspecting there's a general issue here with form fields. Bugzilla seems to have added its own draft-comment-saving feature which is completely separate from Firefox's own basic form-field-preservation functionality. Plus, bugzilla.mozilla.org admins don't love people using Bugzilla for testing except when absolutely necessary. So: you might just make a note of what precisely happened, the next time you encounter this in the wild, and then see if there's a way you can validate your steps at that point?)
Description
•