Bugs 65848 and 75031, support for application/xml and application/xhtml+xml mime types. This also fixes almost all of content to use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2. r=harishd, valeski (mime types), sr=vidur.
This commit is contained in:
@@ -396,6 +396,8 @@ eAutoDetectResult CViewSourceHTML::CanParse(CParserContext& aParserContext,nsStr
|
||||
}
|
||||
else if(eViewSource==aParserContext.mParserCommand) {
|
||||
if(aParserContext.mMimeType.EqualsWithConversion(kXMLTextContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kXMLApplicationContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kXHTMLApplicationContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kRDFTextContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kHTMLTextContentType) ||
|
||||
aParserContext.mMimeType.EqualsWithConversion(kXULTextContentType)) {
|
||||
|
||||
Reference in New Issue
Block a user