Closed
Bug 134911
Opened 23 years ago
Closed 18 years ago
Changing browser charset encoding loses all form data
Categories
(Core :: Layout: Form Controls, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.9beta2
People
(Reporter: tao, Assigned: smontagu)
References
(Depends on 1 open bug)
Details
(Keywords: dataloss, regression, testcase)
Attachments
(3 files)
|
372 bytes,
text/html
|
Details | |
|
1002 bytes,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
roc
:
approval1.9+
|
Details | Diff | Splinter Review |
|
4.57 KB,
patch
|
Details | Diff | Splinter Review |
2002-03-26-03 commercial build:
1. use browser to load bugzilla bug report.
2. enter comments in the additional comment area (text field)
3. go to "View|Charset" to change viewing charset, e.g., from Chinese to Western.
All the text entered disappear!
Comment 1•23 years ago
|
||
*** Bug 134910 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
QA Contact: madhur → tpreston
Comment 3•23 years ago
|
||
nsbeta1-. We reload the document when the charset changes. A patch for this
would be risky and time consuming.
Comment 4•23 years ago
|
||
This is a real Internationalization bug, and while it looks like it's related to
bug 61363, I don't think it really is. This shouldn't require changing the way
we reload charsets; it just means we have to trigger save/restore when this
happens. Setting dependent on bug 166636 (Move Save/Restore out of Layout)
since the triggers are going to change there.
Comment 5•23 years ago
|
||
Reproduced in 1/03/03 Trunk, Win XP. Minimised test case attached.
Keywords: testcase
Comment 6•23 years ago
|
||
| Assignee | ||
Comment 7•18 years ago
|
||
Judging by bug 92473 comment 2, this is deliberate, but I don't understand why, and the testcases there are no longer available.
Assignee: john → smontagu
| Assignee | ||
Updated•18 years ago
|
Summary: Changing browser viewing charset lose all form data → Changing browser charset encoding loses all form data
Comment 10•18 years ago
|
||
I just looked, and it looks to me that with the changes made in bug 108309 we can just back out the change made for bug 92473 without regressing it. Someone should test, though. Or at least provide a testcase for bug 92473 so I can test...
Summary: Changing browser charset encoding loses all form data → Changing browser viewing charset lose all form data
Updated•18 years ago
|
Summary: Changing browser viewing charset lose all form data → Changing browser charset encoding loses all form data
| Assignee | ||
Comment 11•18 years ago
|
||
I can test that, but not before Saturday night. Meanwhile I've attached a couple of testcases to bug 92473.
| Assignee | ||
Comment 12•18 years ago
|
||
This backs out the change to nsDocShell.cpp from bug 92473, and indeed fixes this (and bug 336109) without regressing bug 92473. I deliberately didn't touch the changes to other files, which set the LOAD_FLAGS_CHARSET_CHANGE flag or pass it around.
Attachment #282960 -
Flags: superreview?(bzbarsky)
Attachment #282960 -
Flags: review?(cbiesinger)
Comment 13•18 years ago
|
||
Comment on attachment 282960 [details] [diff] [review]
Patch
sr=me, but please try to write some tests if possible?
Attachment #282960 -
Flags: superreview?(bzbarsky) → superreview+
| Assignee | ||
Comment 14•18 years ago
|
||
"If possible" -- ay, there's the rub. I haven't made tests for bug 382074 and friends because I couldn't work out how to simulate an encoding change in any of our test frameworks. Suggestions are welcome.
Comment 15•18 years ago
|
||
You can simulate an encoding change in the "browser" test framework by just running whatever JS runs when the user selects that menuitem...
| Assignee | ||
Comment 16•18 years ago
|
||
Comment on attachment 282960 [details] [diff] [review]
Patch
Yup, tests are good :)
This only works for <textarea>s with no initial content, as in the attached testcase: all other form elements are reset to their initial value on changing charset.
Attachment #282960 -
Attachment is obsolete: true
Attachment #282960 -
Flags: review?(cbiesinger)
Comment 17•18 years ago
|
||
Uh... that's really odd. I wouldn't expect that to happen at all.
| Assignee | ||
Comment 18•18 years ago
|
||
There seems to be a separate regression that a normal reload resets form elements :(
| Assignee | ||
Comment 19•18 years ago
|
||
... but not all the time. I haven't worked out exactly what are the circumstances where that happens.
Comment 20•18 years ago
|
||
Please make sure that's filed. That should be a 1.9 blocker. And sounds like you want to re-request review on this patch....
Flags: blocking1.9?
| Assignee | ||
Comment 21•18 years ago
|
||
Comment on attachment 282960 [details] [diff] [review]
Patch
Rerequesting for now. I'm still having some trouble making it work in the browser test environment, but it works fine manually in the cases where the reload bug doesn't kick in.
Attachment #282960 -
Flags: review?(cbiesinger)
| Assignee | ||
Comment 22•18 years ago
|
||
Filed bug 398243 on the reset-on-reload bug.
| Assignee | ||
Comment 23•18 years ago
|
||
| Assignee | ||
Updated•18 years ago
|
Attachment #282960 -
Attachment is obsolete: false
Flags: blocking1.9? → blocking1.9-
Whiteboard: [wanted-1.9]
Comment 24•18 years ago
|
||
Comment on attachment 282960 [details] [diff] [review]
Patch
r=me as well. Ask for approval, please. I think we should take this.
Attachment #282960 -
Flags: review?(cbiesinger) → review+
| Assignee | ||
Updated•18 years ago
|
Attachment #282960 -
Flags: approval1.9?
Attachment #282960 -
Flags: approval1.9? → approval1.9+
Comment 25•18 years ago
|
||
Simon, are you going to land this once the tree reopens?
| Assignee | ||
Comment 26•18 years ago
|
||
Yeah, I already put it in the queue at http://wiki.mozilla.org/Firefox3/Beta2CheckinQueue#Non-Blockers
| Assignee | ||
Comment 27•18 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Comment 28•18 years ago
|
||
Should Target Milestone be changed to Firefox 3 M10 since this will have made it in for Beta 2? :)
Updated•18 years ago
|
Target Milestone: Future → mozilla1.9 M10
Updated•18 years ago
|
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
Comment 29•16 years ago
|
||
This test is randomly failing. See bug 503681
You need to log in
before you can comment on or make changes to this bug.
Description
•