Bug 943268 - Remove nsCharsetAlias and nsCharsetConverterManager. r=emk.

This commit is contained in:
Henri Sivonen
2014-05-08 12:32:00 +03:00
parent dbdabcc216
commit 3feac9d066
125 changed files with 660 additions and 2224 deletions

View File

@@ -234,11 +234,8 @@ nsHtml5StreamParser::Notify(const char* aCharset, nsDetectionConfident aConf)
if (aConf == eBestAnswer || aConf == eSureAnswer) {
mFeedChardet = false; // just in case
nsAutoCString encoding;
if (!EncodingUtils::FindEncodingForLabel(nsDependentCString(aCharset),
encoding)) {
return NS_OK;
}
if (encoding.EqualsLiteral("replacement")) {
if (!EncodingUtils::FindEncodingForLabelNoReplacement(
nsDependentCString(aCharset), encoding)) {
return NS_OK;
}
if (HasDecoder()) {