Bug 821777 - Get some kind of version information into nsPluginTag for Flash on Android r=josh

This commit is contained in:
James Willcox 2012-12-17 10:05:53 -05:00
parent 75266bb73b
commit 617f9013a3

View File

@ -2781,10 +2781,18 @@ nsPluginHost::ReadPluginInfo()
if (!reader.NextLine())
return rv;
const char *description = reader.LinePtr();
char *description = reader.LinePtr();
if (!reader.NextLine())
return rv;
#if MOZ_WIDGET_ANDROID
// Flash on Android does not populate the version field, but it is tacked on to the description.
// For example, "Shockwave Flash 11.1 r115"
if (PL_strncmp("Shockwave Flash ", description, 16) == 0 && description[16]) {
version = &description[16];
}
#endif
const char *name = reader.LinePtr();
if (!reader.NextLine())
return rv;