mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
fix bug 6740. approved by christ hofmann. reviewed by harish. This is a temp fix. ftang should move this hack out of parser after M6
This commit is contained in:
parent
00bbff0921
commit
b3bfc169c4
@ -622,6 +622,13 @@ nsresult nsParser::Parse(nsIURL* aURL,nsIStreamObserver* aListener,PRBool aVerif
|
||||
if (rv != NS_OK) return rv;
|
||||
nsAutoString theName(spec);
|
||||
|
||||
// Temp hack to prevent reload on mail message
|
||||
if(-1 != theName.Find("tempMessage.eml"))
|
||||
{
|
||||
nsAutoString utf8("UTF-8");
|
||||
SetDocumentCharset(utf8, kCharsetFromPreviousLoading);
|
||||
}
|
||||
|
||||
CParserContext* pc=new CParserContext(new nsScanner(theName,PR_FALSE, mCharset, mCharsetSource),aKey,aListener);
|
||||
if(pc) {
|
||||
pc->mMultipart=PR_TRUE;
|
||||
|
@ -622,6 +622,13 @@ nsresult nsParser::Parse(nsIURL* aURL,nsIStreamObserver* aListener,PRBool aVerif
|
||||
if (rv != NS_OK) return rv;
|
||||
nsAutoString theName(spec);
|
||||
|
||||
// Temp hack to prevent reload on mail message
|
||||
if(-1 != theName.Find("tempMessage.eml"))
|
||||
{
|
||||
nsAutoString utf8("UTF-8");
|
||||
SetDocumentCharset(utf8, kCharsetFromPreviousLoading);
|
||||
}
|
||||
|
||||
CParserContext* pc=new CParserContext(new nsScanner(theName,PR_FALSE, mCharset, mCharsetSource),aKey,aListener);
|
||||
if(pc) {
|
||||
pc->mMultipart=PR_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user