Bug 1307501 - Flash plugin isn't enabled in nightly because this check was using the description instead of the name. r=stupidly obvious
MozReview-Commit-ID: EJmdQfYhGp9
--- a/dom/plugins/base/nsPluginHost.cpp
+++ b/dom/plugins/base/nsPluginHost.cpp
@@ -2091,17 +2091,17 @@ nsPluginHost::AddPluginTag(nsPluginTag*
}
}
}
}
static bool
PluginInfoIsFlash(const nsPluginInfo& info)
{
- if (strcmp(info.fDescription, "Shockwave Flash") != 0) {
+ if (strcmp(info.fName, "Shockwave Flash") != 0) {
return false;
}
for (uint32_t i = 0; i < info.fVariantCount; ++i) {
if (info.fMimeTypeArray[i] &&
(!strcmp(info.fMimeTypeArray[i], "application/x-shockwave-flash") ||
!strcmp(info.fMimeTypeArray[i], "application/x-shockwave-flash-test"))) {
return true;
}