projects
/
firefox-esr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c66e8dd
)
Don't register plugins if the MOZILLA_DISABLE_PLUGINS environment variable is set
author
Mike Hommey
<glandium@debian.org>
Sat, 27 Sep 2008 15:17:39 +0000
(17:17 +0200)
committer
Mike Hommey
<glandium@debian.org>
Tue, 22 Oct 2019 21:50:01 +0000
(22:50 +0100)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Don-t-register-plugins-if-the-MOZILLA_DISABLE_PLUGIN.patch
dom/plugins/base/nsPluginHost.cpp
patch
|
blob
|
history
diff --git
a/dom/plugins/base/nsPluginHost.cpp
b/dom/plugins/base/nsPluginHost.cpp
index 410132450dd97eab2589a04956b190f3a16ee501..e905b7a4e8eebc099d315e5d01ed2d862909f31f 100644
(file)
--- a/
dom/plugins/base/nsPluginHost.cpp
+++ b/
dom/plugins/base/nsPluginHost.cpp
@@
-362,6
+362,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) {