Bug 859172 - Call SetInputErrorBehavior from convertURItoUnicode. r=smontagu

This commit is contained in:
Masatoshi Kimura 2013-04-19 22:15:41 +09:00
parent d84e7e16cb
commit 939380bc15

View File

@ -174,6 +174,7 @@ nsresult nsTextToSubURI::convertURItoUnicode(const nsAFlatCString &aCharset,
rv = charsetConverterManager->GetUnicodeDecoder(aCharset.get(),
getter_AddRefs(unicodeDecoder));
NS_ENSURE_SUCCESS(rv, rv);
unicodeDecoder->SetInputErrorBehavior(nsIUnicodeDecoder::kOnError_Signal);
int32_t srcLen = aURI.Length();
int32_t dstLen;