Open Bug 29271 Opened 25 years ago Updated 2 years ago

Need a warning dialog for non-matching charset in form posting

Categories

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

defect

Tracking

()

People

(Reporter: ftang, Unassigned)

References

Details

(Keywords: intl)

If we type some text in form but the text cannot convert to the document 
charset, it will be nice we warn the user and provide the following information
1. It try to post as charset XXXX
2. The following field name YYY have text ZZZZ which cannot be represent as 
charset  XXXX and will be change to LLLL
3. Provide two choice- [Do not submit] [Submit it anyway]
The concept is similar to 28908
Status: NEW → ASSIGNED
Target Milestone: M17
jbetak- you probably can help since you are now familar with the form posting 
code. Please look at how wallet and security code file prompt dialogbox at the 
form posting code. 
Assignee: ftang → jbetak
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
reassigning to ftang for resource reallocation
Assignee: jbetak → ftang
Status: ASSIGNED → NEW
mark assign.
Status: NEW → ASSIGNED
nhotta- can you teach me how to throw a warning dialog ?
Mail code uses nsIPrompt::Confirm() for alert.
http://lxr.mozilla.org/seamonkey/source/mailnews/compose/src/nsMsgPrompts.cpp
Updating QA contact.
QA Contact: ckritzer → vladimire
nhotta, can you add this ?
reassign browser related bug to nhotta.
Assignee: ftang → nhotta
Status: ASSIGNED → NEW
Target Milestone: M17 → ---
what will the data in question (ZZZZ) be converted to?

would it make sense to warn the user when they typed it in instead of when they
submitted it?
mark it as Future
Target Milestone: --- → Future
Status: NEW → ASSIGNED
Blocks: 70838
NAOKI:
  could you take a look at this one please?

I have bug 70838 assigned to me and that one has a miletone set.

If you cannot take care about this bug, go ahead and reassign it to me.

Thx!
We need to check the error code NS_ERROR_UENC_NOMAPPING of
nsIUnicodeEncoder::Conver().
http://lxr.mozilla.org/seamonkey/source/content/html/content/src/nsFormSubmitter.cpp#1312

But I have no idea how to post alert in that code.
Alexandru, do you have any idea?
Keywords: intl
cc to alexsavulov@netscape.com, please see my last comment.
Naoki:
I'm looking at it. As soon as I have a wayto do that i'll let you know.
Naoki:

Unfortuantely the source code of nsFormSubmitter.cpp changed after j.keisers
checkin. However since then there is a piece of code that opens a notification
dialog. 

If that's what you need then loock in nsFormSubmitter::OnSubmit after

398 nsresult notifyStatus = formSubmitObserver->Notify(formElement,
399                                                    window,
400                                                    actionURL,
401                                                    &cancelSubmit);

Hope this helps!

Okay, I will look intot this 0.9.8.
Target Milestone: Future → mozilla0.9.8
Target Milestone: mozilla0.9.8 → ---
Target Milestone: --- → mozilla1.2
Target Milestone: mozilla1.2alpha → ---
*** Bug 189275 has been marked as a duplicate of this bug. ***
are there any news on this? You said you'll look at it more than 2 years
ago ;-)
Blocks: 228779
QA Contact: vladimire → form-submission
Component: HTML: Form Submission → DOM: Core & HTML

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: nhottanscp → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.