зеркало из https://github.com/mozilla/gecko-dev.git
Checking in patch from sbanu@softwin.ro that enables view-source of text/sgml in mozilla, fixes bug 76671. r=harishd@netscape.com, sr=me.
This commit is contained in:
Родитель
8ac703673b
Коммит
2b2c615477
|
@ -361,6 +361,7 @@ const PRUnichar kNullCh = '\0';
|
|||
#define kApplicationJSContentType "application/x-javascript"
|
||||
#define kTextJSContentType "text/javascript"
|
||||
#define kRTFTextContentType "text/rtf"
|
||||
#define kSGMLTextContentType "text/sgml"
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -411,7 +411,8 @@ eAutoDetectResult CViewSourceHTML::CanParse(CParserContext& aParserContext,nsStr
|
|||
aParserContext.mMimeType.EqualsWithConversion(kXHTMLApplicationContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kRDFTextContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kHTMLTextContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kXULTextContentType)) {
|
||||
aParserContext.mMimeType.EqualsWithConversion(kXULTextContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kSGMLTextContentType)) {
|
||||
result=ePrimaryDetect;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -361,6 +361,7 @@ const PRUnichar kNullCh = '\0';
|
|||
#define kApplicationJSContentType "application/x-javascript"
|
||||
#define kTextJSContentType "text/javascript"
|
||||
#define kRTFTextContentType "text/rtf"
|
||||
#define kSGMLTextContentType "text/sgml"
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -411,7 +411,8 @@ eAutoDetectResult CViewSourceHTML::CanParse(CParserContext& aParserContext,nsStr
|
|||
aParserContext.mMimeType.EqualsWithConversion(kXHTMLApplicationContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kRDFTextContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kHTMLTextContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kXULTextContentType)) {
|
||||
aParserContext.mMimeType.EqualsWithConversion(kXULTextContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kSGMLTextContentType)) {
|
||||
result=ePrimaryDetect;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче