summaryrefslogtreecommitdiffstats
path: root/dom/plugins/base/nsPluginHost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/plugins/base/nsPluginHost.cpp')
-rw-r--r--dom/plugins/base/nsPluginHost.cpp70
1 files changed, 1 insertions, 69 deletions
diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp
index c3de136d0..1b98855d1 100644
--- a/dom/plugins/base/nsPluginHost.cpp
+++ b/dom/plugins/base/nsPluginHost.cpp
@@ -104,11 +104,6 @@
#include "winbase.h"
#endif
-#ifdef ANDROID
-#include <android/log.h>
-#define LOG(args...) __android_log_print(ANDROID_LOG_INFO, "GeckoPlugins" , ## args)
-#endif
-
#include "npapi.h"
using namespace mozilla;
@@ -293,10 +288,6 @@ nsPluginHost::nsPluginHost()
if (obsService) {
obsService->AddObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, false);
obsService->AddObserver(this, "blocklist-updated", false);
-#ifdef MOZ_WIDGET_ANDROID
- obsService->AddObserver(this, "application-foreground", false);
- obsService->AddObserver(this, "application-background", false);
-#endif
}
#ifdef PLUGIN_LOGGING
@@ -2306,11 +2297,6 @@ WatchRegKey(uint32_t aRoot, nsCOMPtr<nsIWindowsRegKey>& aKey)
nsresult nsPluginHost::LoadPlugins()
{
-#ifdef ANDROID
- if (XRE_IsContentProcess()) {
- return NS_OK;
- }
-#endif
// do not do anything if it is already done
// use ReloadPlugins() to enforce loading
if (mPluginsLoaded)
@@ -2453,10 +2439,6 @@ nsresult nsPluginHost::FindPlugins(bool aCreatePluginList, bool * aPluginsChange
NS_ITERATIVE_UNREF_LIST(RefPtr<nsInvalidPluginTag>, mInvalidPlugins, mNext);
return NS_OK;
}
- } else {
-#ifdef ANDROID
- LOG("getting plugins dir failed");
-#endif
}
mPluginsLoaded = true; // at this point 'some' plugins have been loaded,
@@ -3069,14 +3051,6 @@ nsPluginHost::ReadPluginInfo()
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;
@@ -3144,31 +3118,6 @@ nsPluginHost::ReadPluginInfo()
mCachedPlugins = tag;
}
-// On Android we always want to try to load a plugin again (Flash). Bug 935676.
-#ifndef MOZ_WIDGET_ANDROID
- if (!ReadSectionHeader(reader, "INVALID")) {
- return rv;
- }
-
- while (reader.NextLine()) {
- const char *fullpath = reader.LinePtr();
- if (!reader.NextLine()) {
- return rv;
- }
-
- const char *lastModifiedTimeStamp = reader.LinePtr();
- int64_t lastmod = nsCRT::atoll(lastModifiedTimeStamp);
-
- RefPtr<nsInvalidPluginTag> invalidTag = new nsInvalidPluginTag(fullpath, lastmod);
-
- invalidTag->mNext = mInvalidPlugins;
- if (mInvalidPlugins) {
- mInvalidPlugins->mPrev = invalidTag;
- }
- mInvalidPlugins = invalidTag;
- }
-#endif
-
return NS_OK;
}
@@ -3491,24 +3440,7 @@ NS_IMETHODIMP nsPluginHost::Observe(nsISupports *aSubject,
plugin = plugin->mNext;
}
}
-#ifdef MOZ_WIDGET_ANDROID
- if (!strcmp("application-background", aTopic)) {
- for(uint32_t i = 0; i < mInstances.Length(); i++) {
- mInstances[i]->NotifyForeground(false);
- }
- }
- if (!strcmp("application-foreground", aTopic)) {
- for(uint32_t i = 0; i < mInstances.Length(); i++) {
- if (mInstances[i]->IsOnScreen())
- mInstances[i]->NotifyForeground(true);
- }
- }
- if (!strcmp("memory-pressure", aTopic)) {
- for(uint32_t i = 0; i < mInstances.Length(); i++) {
- mInstances[i]->MemoryPressure();
- }
- }
-#endif
+
return NS_OK;
}