Package: icedove / 1:52.3.0-4~deb8u2

debian-hacks/Don-t-register-plugins-if-the-MOZILLA_DISABLE_PLUGIN.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Mike Hommey <glandium@debian.org>
Date: Sat, 27 Sep 2008 17:17:39 +0200
Subject: Don't register plugins if the MOZILLA_DISABLE_PLUGINS environment
 variable is set

---
 mozilla/dom/plugins/base/nsPluginHost.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mozilla/dom/plugins/base/nsPluginHost.cpp b/mozilla/dom/plugins/base/nsPluginHost.cpp
index 6ee23f3..bc3218c 100644
--- a/mozilla/dom/plugins/base/nsPluginHost.cpp
+++ b/mozilla/dom/plugins/base/nsPluginHost.cpp
@@ -292,6 +292,10 @@ nsPluginHost::nsPluginHost()
 
   Preferences::AddStrongObserver(this, "plugin.disable");
 
+  const char *env = PR_GetEnv("MOZILLA_DISABLE_PLUGINS");
+  if (env && env[0])
+    mPluginsDisabled = PR_TRUE;
+
   nsCOMPtr<nsIObserverService> obsService =
     mozilla::services::GetObserverService();
   if (obsService) {