import from UXP: Issue #2861 - Part 2 Follow-up: nsIPluginHost.isPluginOOP should not always return true. (668296cf)

This commit is contained in:
2025-12-17 23:59:20 +08:00
parent 5e872b5604
commit 06ce41698d
+5 -1
View File
@@ -1072,7 +1072,11 @@ NS_IMETHODIMP
nsPluginHost::IsPluginOOP(const nsACString& aMimeType,
bool* aResult)
{
*aResult = true;
nsPluginTag* tag = FindNativePluginForType(aMimeType, true);
if (!tag) {
return NS_ERROR_NOT_AVAILABLE;
}
*aResult = nsNPAPIPlugin::RunPluginOOP(tag);
return NS_OK;
}