Closed Bug 45059 Opened 25 years ago Closed 25 years ago

char coding toggling ineffective in a standalone message view window

Categories

(MailNews Core :: Internationalization, defect, P3)

x86
Windows 98
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: guangyan, Assigned: mscott)

Details

(Whiteboard: [nsbeta3+] fix in hand)

Attachments

(2 files)

when opening a message (in its own window) with an attached japanese html, changing the character coding doesn't refresh the display at all. However, character coding change IS effective when you are viewing the message in the bottom pane. Also, NS 6 no longer hangs when the character coding is toggled in a message window. observed with 2000-07-10-08 build Steps to reproduce: 1. send yourself a japanese html and retrieve it. 2. double click on message to open it. 3. go to View|Character Coding and select a different coding. observed result: nothing happens. expected result: the message window should refresh
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reassign to mscott. This is about charset override for attachments opened in a browser window. Scott, is there anything special for the browser window for an attachment?
Assignee: nhotta → mscott
I'm confused about a comment in this bug report: expected result: the message window should refresh You mean the browser window don't you? I thought you were opening the html attachment into a new browser window and then you are trying to refresh the browser window? Or are you still in a stand alone message window?
the problem occurs in a stand alone message window, not a browser window.
Just so I'm clear, cause this sounds a little strange. You are viewing a message. It has an attachment. You click on the attachment icon and select the Open radio button. The .html attachment opens in a stand alone message window and not a browser window? That sounds really odd!! for me, html files open in stand alone browser windows when I try to open them not mail windows. Or am is my confusion 'cause this has nothing to do with opening a message attachment. But viewing the message in a stand alone message pane and trying to chage the charset has no effecton the attachment?
Character Coding menu is totally disabled whether or not there is an attachment to a message. The standalone window's Character Coding menu is simply not functional. A sizable number of people use standalone window particularly when messages are long like when there are inline viewable attachments.
First, let's get the Character Coding menu work in a standalone mail window. Then, we can look at cases of attachments, e.g. an HTML attchament which is encoded in a different encoding than the main body and it has no Meta-charset tag embedded in that document. In the view pane window, you can change the Chracter Coding menu to view such an inline attachment.
I changed the summary line to better reflect the nature of this bug.
Summary: char coding toggling ineffective when opening msg with attached japanese html → char coding toggling ineffective in a standalone message view window
A standalone window for a message and a browser for an opened attachment, for both cases charset override do not work. I think this bug is for the attachment case. Do we have one for a standalone window? (But the summary just got changed while I was editing. Anyway, I think we need two bugs).
It says "when openign a *message* with ..." and so if we trust that wording, this should be about the standalone window. Let's file a new bug on the Browser vie window for attachments.
Naoki, I tried the Browser window for a Shift_JIS document attchment with or without a meta tag in it and in both cases, I can use the Character Coding menu to change the viewing OK. Are there other types of cases?
I can reproduce that with a message in my mbox. The message has a yahoo ja as an attachment. After I opened the attachment, in the browser window, I set a charset to EUC-jp using charset menu but it was not reloaded.
I cannot reproduce the problem (open attachment) using win32 build ID 2000071408. Standalone message problem still exists.
triaging.
Status: NEW → ASSIGNED
Keywords: correctness, nsbeta3
Target Milestone: --- → M18
Per i18n/mail triage meeting, this bug is marked as [nsbeta3+]. A lot of use use standalone windows to view messages and encoding menu change must be effective in that window.
Whiteboard: [nsbeta3+]
Attached patch proposed fixSplinter Review
putterman can you review my fix? when bringing up the view menu from a stand alone message pane, we got a JS error in view_init() saying that IsThreadAndMessagePaneSplitterCollapsed. In order to fix this, I had to make messageWindow.xul include msgMail3PaneWindow.js (which is bogus but the view menu JS code demands that it be there. Is there a better way?)
Whiteboard: [nsbeta3+] → [nsbeta3+] fix in hand
Attached patch another patchSplinter Review
Scott, Here's another patch that doesn't include msgMail3PaneWindow.js. If it looks ok, I'll check it in.
Looks good, feel free to check it in along with my fix to include shareglue.js
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
gary, please verify this with the latest build. Things to check: 1. that any message which is showing OK should OK when it is opened in standalone window. 2. that any message which has no MIME info (test file, noMIME) should be be OK in the main window if the view default is set correctly, and then should show OK in the standalone. 3. that any message which has incorrect MIME info can be corrected in the main view window, should show OK in the standalone window inheriting the correction. If correction in the main window is not inherited, then file a bug. 4. If for any reason, display is broken in the standalone window, then it should be correctable with View Character Coding menu. Exception might be a header. 5. Attachment should be correctable if not showing correctly in the standalone window. There are perhaps more. But the principle is that if something can be displayed in the main view window, then it should be equally viewable in the standalone window. Another principle is that the standalone should inherit any corrections already made in the main view window.
QA contcat to guangyan.
QA Contact: momoi → guangyan
in the 08-16-08M18 build, this problem has been fixed: changing view charset setting in the standalone window is actually functional. However, bug 49230 has been filed because standalone message window does NOT inherit changes made to the main window settings.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: