mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 957694 - Disable Flash on Tegra devices running KitKat r=blassey
This commit is contained in:
parent
30b89fa3e5
commit
32a6d15096
@ -1958,7 +1958,8 @@ public class GeckoAppShell
|
||||
static String[] getPluginDirectories() {
|
||||
|
||||
// An awful hack to detect Tegra devices. Easiest way to do it without spinning up a EGL context.
|
||||
boolean isTegra = (new File("/system/lib/hw/gralloc.tegra.so")).exists();
|
||||
boolean isTegra = (new File("/system/lib/hw/gralloc.tegra.so")).exists() ||
|
||||
(new File("/system/lib/hw/gralloc.tegra3.so")).exists();
|
||||
if (isTegra) {
|
||||
// disable Flash on Tegra ICS with CM9 and other custom firmware (bug 736421)
|
||||
File vfile = new File("/proc/version");
|
||||
@ -1986,6 +1987,12 @@ public class GeckoAppShell
|
||||
// nothing
|
||||
}
|
||||
}
|
||||
|
||||
// disable on KitKat (bug 957694)
|
||||
if (Build.VERSION.SDK_INT >= 19) {
|
||||
Log.w(LOGTAG, "Blocking plugins because of Tegra (bug 957694)");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
ArrayList<String> directories = new ArrayList<String>();
|
||||
|
Loading…
Reference in New Issue
Block a user