mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839456 - Annotate crash reports with Flash version on Android r=bsmedberg
This commit is contained in:
parent
6e10f5b824
commit
b3cd64a23a
@ -132,6 +132,10 @@
|
||||
#define LOG(args...) __android_log_print(ANDROID_LOG_INFO, "GeckoPlugins" , ## args)
|
||||
#endif
|
||||
|
||||
#if MOZ_CRASHREPORTER
|
||||
#include "nsExceptionHandler.h"
|
||||
#endif
|
||||
|
||||
using namespace mozilla;
|
||||
using mozilla::TimeStamp;
|
||||
|
||||
@ -1049,6 +1053,12 @@ nsPluginHost::TrySetUpPluginInstance(const char *aMimeType,
|
||||
nsPluginTag* pluginTag = FindPluginForType(aMimeType, true);
|
||||
NS_ASSERTION(pluginTag, "Must have plugin tag here!");
|
||||
|
||||
#if defined(MOZ_WIDGET_ANDROID) && defined(MOZ_CRASHREPORTER)
|
||||
if (pluginTag->mIsFlashPlugin) {
|
||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("FlashVersion"), pluginTag->mVersion);
|
||||
}
|
||||
#endif
|
||||
|
||||
nsRefPtr<nsNPAPIPlugin> plugin;
|
||||
GetPlugin(aMimeType, getter_AddRefs(plugin));
|
||||
if (!plugin) {
|
||||
|
Loading…
Reference in New Issue
Block a user