blob: 4c6a0818f862f34314d83cc371582bb5a268935e (
plain)
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
---
dom/plugins/base/nsPluginHost.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp
index 4cc7d89..deeb0df 100644
--- a/dom/plugins/base/nsPluginHost.cpp
+++ b/dom/plugins/base/nsPluginHost.cpp
@@ -301,6 +301,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) {
|