Bug 802820 Restore fallback behaviour when charset titles are missing r=smontagu
This commit is contained in:
@@ -1186,8 +1186,7 @@ nsresult nsCharsetMenu::AddCharsetToItemArray(nsTArray<nsMenuEntry*> *aArray,
|
||||
|
||||
item->mCharset = aCharset;
|
||||
|
||||
res = mCCManager->GetCharsetTitle(aCharset.get(), item->mTitle);
|
||||
if (NS_FAILED(res)) {
|
||||
if (NS_FAILED(mCCManager->GetCharsetTitle(aCharset.get(), item->mTitle))) {
|
||||
item->mTitle.AssignWithConversion(aCharset.get());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user