Bug 831188 - Don't list inactive plugins (blocklisted or disabled) on about:plugins. r=bsmedberg
authorChris Peterson <cpeterson@mozilla.com>
Wed, 16 Jan 2013 11:06:35 -0800
changeset 119088 2f28e36cd272a8d4fcf0fa28d9c6fca9f958bd3c
parent 119087 b7743e1e31e475e8a14f82a59c572910f230b499
child 119089 8b9ecdf2995d689b93488ca893a17f5fb4b0c50b
push id21455
push usercpeterson@mozilla.com
push dateWed, 16 Jan 2013 23:31:24 +0000
treeherdermozilla-inbound@2f28e36cd272 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs831188
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 831188 - Don't list inactive plugins (blocklisted or disabled) on about:plugins. r=bsmedberg
toolkit/content/plugins.html
--- a/toolkit/content/plugins.html
+++ b/toolkit/content/plugins.html
@@ -109,17 +109,17 @@
     plugindoc.setAttribute("href", regionbundle.GetStringFromName("plugindoc_url"));
     plugindoc.appendChild(document.createTextNode(regionbundle.GetStringFromName("plugindoc_label")));
     installhelp.appendChild(plugindoc);
 
     fragment.appendChild(document.createElement("hr"));
 
     for (var i = 0; i < aPlugins.length; i++) {
       var plugin = aPlugins[i];
-      if (plugin) {
+      if (plugin && plugin.isActive) {
         // "Shockwave Flash"
         var plugname = document.createElement("h2");
         plugname.setAttribute("class", "plugname");
         plugname.appendChild(document.createTextNode(plugin.name));
         fragment.appendChild(plugname);
 
         var dl = document.createElement("dl");
         fragment.appendChild(dl);