Closed Bug 96759 Opened 24 years ago Closed 24 years ago

[Composer] Charset can not be marked as specified

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.8

People

(Reporter: amyy, Assigned: rchen)

Details

(Keywords: intl, Whiteboard: wait for sr.)

Attachments

(2 files)

Build: 08-22 trunk build on all platforms Steps to reproduce: 1. Launch browser. 2. a. 1) Open Composer, View | Character Coding | More, select a charset other than default charset(iso-8859-1 for English build...), e.g. x-jis, big5... 2) Go View | Character Coding again, you will see the charset that you specified in step a 1) is not marked. I expected it will be marked. b. 1) In browser, go some page that has different encoding than default, e.g. on US build, go http://home.netscape.com/ja, then you will see x-jis will be marked in Charset menu. 2) File | Edit Page, to bring this page in Composer. 3) Check the charset by going View | Character Coding, you will see the charset will not be marked as anthing, and the s-jis is not been added into charset menu.
Keywords: intl
QA Contact: andreasb → ylong
Summary: [Composer] Charset can not be marked as specified → [Composer] Charset can not be marked as specified
assigning to jbetak
Assignee: yokoyama → jbetak
accepting
Status: NEW → ASSIGNED
mark as m0.9.7
Target Milestone: --- → mozilla0.9.7
jbetak's contract is up. Bulk move bugs to ftang
Assignee: jbetak → ftang
Status: ASSIGNED → NEW
ui issue, rchen- please try.
Assignee: ftang → rchen
Nominating as nsbeta1 - it block many Composer charset feature.
Keywords: nsbeta1
Target Milestone: mozilla0.9.7 → mozilla0.9.8
It looks like "composer" is excluded in the eventlistener in charsetOverlay.js: var wintype = document.firstChild.getAttribute('windowtype'); if (window && (wintype == "navigator:browser")) { var contentArea = window.document.getElementById("appcontent"); if (contentArea) contentArea.addEventListener("load", charsetLoadListener, true); } else { var arrayOfStrings = wintype.split(":"); if (window && arrayOfStrings[0] == "mail") { var messageContent = window.document.getElementById("messagepane"); if (messageContent) messageContent.addEventListener("load", mailCharsetLoadListener, true); } }
Status: NEW → ASSIGNED
if you add a alert(wintype); what will you got in the composer ?
I used dump to debug. It showed "composer:html" for composer. There could be some otherthing missing on the side of editorshell object. I am looking into it.
try change if (window && (wintype == "navigator:browser")) to if (window && ((wintype == "navigator:browser")||(wintype == "composer:html")))
I tried it already. It didn't work.
ftang, can you please review it?
Naoki, can you help me test it on MAC? and review the patch? Thanks.
I think gLastComposerCharset is not necessary. It is done that way for browser which loads more than one page which is not the case for composer. Could you try to remove gLastComposerCharset and see if it works?
gLastComposerCharset removed. It works fine.
Comment on attachment 63897 [details] [diff] [review] new patch without gLastComposerCharset r=nhotta
Attachment #63897 - Flags: review+
alecf, can you sr?
Whiteboard: wait for sr.
Comment on attachment 63897 [details] [diff] [review] new patch without gLastComposerCharset sr=alecf we really need a better way to hook up the charset. For instance, what does chatzilla do? or the dom inspector? or the javascript debugger? This needs to be dynamic so that each client can react to the charset menu
Attachment #63897 - Flags: superreview+
Checkin.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
On 01-15 trunk build/WinXP: The problems in original report has been fixed. However, the new charset is only marked in UI but not in source code. I'll mark this one as verified and open a new bug for the left over problem.
Status: RESOLVED → VERIFIED
Somehow, I don't see the left over problem any more...
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: