Issue #2861 - Part 2 Follow-up: nsIPluginHost.isPluginOOP should not always return true.

Actually restore the method as it was when it was added in Mozilla bug 1178896.
This commit is contained in:
Job Bautista
2025-12-10 11:08:59 +08:00
committed by roytam1
parent dd61d079b0
commit 668296cf5d
+5 -1
View File
@@ -1063,7 +1063,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;
}