mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 06:20:41 +00:00
Bug 821777 - Get some kind of version information into nsPluginTag for Flash on Android r=josh
This commit is contained in:
parent
75266bb73b
commit
617f9013a3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user