summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-12 16:34:33 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-12 16:34:33 +0100
commit598dc50dbbba98cffc7719ff22fe1f41eeec268e (patch)
tree2b97a1df614d01e5eb6b559559b7b7194f2bf2b0 /dom
parent26163d89884a6eadf66e15a8bf9e800aa960ba5f (diff)
downloaduxp-598dc50dbbba98cffc7719ff22fe1f41eeec268e.tar.gz
Remove leftover flashOnly checks in the plugin registry.
Diffstat (limited to 'dom')
-rw-r--r--dom/plugins/base/nsPluginHost.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp
index ca2871609a..5fb265efca 100644
--- a/dom/plugins/base/nsPluginHost.cpp
+++ b/dom/plugins/base/nsPluginHost.cpp
@@ -2848,14 +2848,12 @@ nsPluginHost::WritePluginInfo()
return rv;
}
- bool flashOnly = Preferences::GetBool("plugin.load_flash_only", true);
-
PR_fprintf(fd, "Generated File. Do not edit.\n");
PR_fprintf(fd, "\n[HEADER]\nVersion%c%s%c%c%c\nArch%c%s%c%c\n",
PLUGIN_REGISTRY_FIELD_DELIMITER,
kPluginRegistryVersion,
- flashOnly ? 't' : 'f',
+ 'f', //flashOnly
PLUGIN_REGISTRY_FIELD_DELIMITER,
PLUGIN_REGISTRY_END_OF_LINE_MARKER,
PLUGIN_REGISTRY_FIELD_DELIMITER,
@@ -3052,9 +3050,8 @@ nsPluginHost::ReadPluginInfo()
// If we're reading an old registry, ignore it
// If we flipped the flash-only pref, ignore it
- bool flashOnly = Preferences::GetBool("plugin.load_flash_only", true);
nsAutoCString expectedVersion(kPluginRegistryVersion);
- expectedVersion.Append(flashOnly ? 't' : 'f');
+ expectedVersion.Append('f'); //flashOnly
if (!expectedVersion.Equals(values[1])) {
return rv;