bug 962658 - test_badMimeType.html | Assertion count 6 is greater than expected range 0-0 assertions. on Android 4.0 Debug r=gbrown

--HG--
extra : rebase_source : e601fa6f2ed385a28bb25550c4a13aa63f5a452b
This commit is contained in:
Brad Lassey 2014-04-11 00:33:47 -04:00
parent bd48bd2742
commit 29b8f63571

View File

@ -50,7 +50,13 @@ nsMIMEInfoAndroid::GetMimeInfoForMimeType(const nsACString& aMimeType,
}
nsIHandlerApp* systemDefault = nullptr;
bridge->GetHandlersForMimeType(NS_ConvertUTF8toUTF16(aMimeType),
if (!IsUTF8(aMimeType, true))
return false;
NS_ConvertUTF8toUTF16 mimeType(aMimeType);
bridge->GetHandlersForMimeType(mimeType,
info->mHandlerApps, &systemDefault);
if (systemDefault)