diff options
Diffstat (limited to 'meta-linaro-integration/recipes-overlayed/firefox/firefox/debian-hacks/Don-t-register-plugins-if-the-MOZILLA_DISABLE_PLUGIN.patch')
-rw-r--r-- | meta-linaro-integration/recipes-overlayed/firefox/firefox/debian-hacks/Don-t-register-plugins-if-the-MOZILLA_DISABLE_PLUGIN.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-linaro-integration/recipes-overlayed/firefox/firefox/debian-hacks/Don-t-register-plugins-if-the-MOZILLA_DISABLE_PLUGIN.patch b/meta-linaro-integration/recipes-overlayed/firefox/firefox/debian-hacks/Don-t-register-plugins-if-the-MOZILLA_DISABLE_PLUGIN.patch new file mode 100644 index 0000000..2b13be9 --- /dev/null +++ b/meta-linaro-integration/recipes-overlayed/firefox/firefox/debian-hacks/Don-t-register-plugins-if-the-MOZILLA_DISABLE_PLUGIN.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From: Mike Hommey <glandium@debian.org> | ||
2 | Date: Sat, 27 Sep 2008 17:17:39 +0200 | ||
3 | Subject: Don't register plugins if the MOZILLA_DISABLE_PLUGINS environment | ||
4 | variable is set | ||
5 | |||
6 | --- | ||
7 | dom/plugins/base/nsPluginHost.cpp | 4 ++++ | ||
8 | 1 file changed, 4 insertions(+) | ||
9 | |||
10 | diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp | ||
11 | index 992bcd4..18081a2 100644 | ||
12 | --- a/dom/plugins/base/nsPluginHost.cpp | ||
13 | +++ b/dom/plugins/base/nsPluginHost.cpp | ||
14 | @@ -407,6 +407,10 @@ nsPluginHost::nsPluginHost() | ||
15 | } | ||
16 | } | ||
17 | |||
18 | + const char *env = PR_GetEnv("MOZILLA_DISABLE_PLUGINS"); | ||
19 | + if (env && env[0]) | ||
20 | + mPluginsDisabled = PR_TRUE; | ||
21 | + | ||
22 | nsCOMPtr<nsIObserverService> obsService = | ||
23 | mozilla::services::GetObserverService(); | ||
24 | if (obsService) { | ||