Closed Bug 371647 Opened 17 years ago Closed 17 years ago

ConvertToUnicode in mailWidgets.xml fails at initializing the notification

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: masayuki, Assigned: masayuki)

Details

(Keywords: fixed1.8.1.3, intl)

Attachments

(1 file)

Attached patch Patch rv1.0Splinter Review
Error: [Exception... "Component returned failure code: 0x8000ffff
(NS_ERROR_UNEXPECTED) [nsIScriptableUnicodeConverter.ConvertToUnicode]" 
nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame ::
chrome://messenger/content/mailWidgets.xml :: parseFolder :: line 2114"  data: no]
Source File: chrome://messenger/content/mailWidgets.xml
Line: 2114

> 2111                 var previewText = msgHdr.getStringProperty('preview');
> 2112                 // convert the preview text from utf-8 to unicode          
> 2113                 if (previewText)            
> 2114                   msgPopup.setAttribute('previewText',
unicodeConverter.ConvertToUnicode(previewText));

Maybe, this error is occurred at coming the wrong mail that doesn't have a valid charset for content-type. (many spam mails have it!)

I sometimes reproduce that the notification window never appear. Probably, this bug causes it.

I think that this should be fixed on tb2.
Flags: blocking-thunderbird2?
Attachment #256378 - Flags: superreview?(mscott)
Attachment #256378 - Flags: review?(mscott)
If convertToUnicode throws an error should we:

* not set the preview text attribute (like this patch)
* use the unconverted preview text (would this ever show something useful?)
(In reply to comment #1)
> If convertToUnicode throws an error should we:
> 
> * not set the preview text attribute (like this patch)
> * use the unconverted preview text (would this ever show something useful?)

We should not use broken text. Because the broken text rendering is too slow, especially on trunk.
Comment on attachment 256378 [details] [diff] [review]
Patch rv1.0

Thanks Masayuki.
Attachment #256378 - Flags: superreview?(mscott)
Attachment #256378 - Flags: superreview+
Attachment #256378 - Flags: review?(mscott)
Attachment #256378 - Flags: review+
Attachment #256378 - Flags: approval-thunderbird2+
checked-in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: fixed1.8.1.3
Resolution: --- → FIXED
flag cleanup.
Flags: blocking-thunderbird2? → blocking-thunderbird2+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: