Bug 943268 - Remove nsCharsetAlias and nsCharsetConverterManager. r=emk.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user