Closed
Bug 96759
Opened 24 years ago
Closed 24 years ago
[Composer] Charset can not be marked as specified
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
VERIFIED
FIXED
mozilla0.9.8
People
(Reporter: amyy, Assigned: rchen)
Details
(Keywords: intl, Whiteboard: wait for sr.)
Attachments
(2 files)
1.78 KB,
patch
|
Details | Diff | Splinter Review | |
1.59 KB,
patch
|
nhottanscp
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Updated•24 years ago
|
Keywords: intl
QA Contact: andreasb → ylong
Summary: [Composer] Charset can not be marked as specified → [Composer] Charset can not be marked as specified
Comment 4•24 years ago
|
||
jbetak's contract is up. Bulk move bugs to ftang
Assignee: jbetak → ftang
Status: ASSIGNED → NEW
Reporter | ||
Comment 6•24 years ago
|
||
Nominating as nsbeta1 - it block many Composer charset feature.
Keywords: nsbeta1
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
Comment 8•24 years ago
|
||
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.
Comment 10•24 years ago
|
||
try change
if (window && (wintype == "navigator:browser"))
to
if (window && ((wintype == "navigator:browser")||(wintype == "composer:html")))
Assignee | ||
Comment 11•24 years ago
|
||
I tried it already. It didn't work.
Assignee | ||
Comment 12•24 years ago
|
||
Assignee | ||
Comment 13•24 years ago
|
||
ftang, can you please review it?
Assignee | ||
Comment 14•24 years ago
|
||
Naoki, can you help me test it on MAC? and review the patch? Thanks.
Comment 15•24 years ago
|
||
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?
Assignee | ||
Comment 16•24 years ago
|
||
gLastComposerCharset removed. It works fine.
Assignee | ||
Comment 17•24 years ago
|
||
Comment 18•24 years ago
|
||
Comment on attachment 63897 [details] [diff] [review]
new patch without gLastComposerCharset
r=nhotta
Attachment #63897 -
Flags: review+
Comment 20•24 years ago
|
||
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+
Assignee | ||
Comment 21•24 years ago
|
||
Checkin.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 22•24 years ago
|
||
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
Reporter | ||
Comment 23•24 years ago
|
||
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.
Description
•