Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg

MozReview-Commit-ID: AcAIC1QQew2
This commit is contained in:
James Willcox
2017-07-18 16:25:40 -05:00
parent 8692a70cf1
commit 998cd74d67
42 changed files with 13 additions and 4633 deletions

View File

@@ -213,16 +213,6 @@ bool nsPluginsDir::IsPluginFile(nsIFile* file)
if (NS_FAILED(file->GetNativeLeafName(filename)))
return false;
#ifdef ANDROID
// It appears that if you load
// 'libstagefright_honeycomb.so' on froyo, or
// 'libstagefright_froyo.so' on honeycomb, we will abort.
// Since these are just helper libs, we can ignore.
const char *cFile = filename.get();
if (strstr(cFile, "libstagefright") != nullptr)
return false;
#endif
NS_NAMED_LITERAL_CSTRING(dllSuffix, LOCAL_PLUGIN_DLL_SUFFIX);
if (filename.Length() > dllSuffix.Length() &&
StringEndsWith(filename, dllSuffix))