Bug 180568 - Remove "Enabled" column from about:plugins. ui-r=faaborg r=jst,josh

This commit is contained in:
Saint Wesonga
2010-02-03 13:44:13 +01:00
parent ef527abfdf
commit 18a6c98e2a
3 changed files with 2 additions and 16 deletions

View File

@@ -129,30 +129,21 @@
document.writeln("<tr><th class=\"type\">" + pluginsbundle.GetStringFromName("mimetype_label") + "<\/th>");
document.writeln("<th class=\"desc\">" + pluginsbundle.GetStringFromName("description_label") + "<\/th>");
document.writeln("<th class=\"suff\">" + pluginsbundle.GetStringFromName("suffixes_label") + "<\/th>");
document.writeln("<th class=\"enabled\">" + pluginsbundle.GetStringFromName("enabled_label") + "<\/th><\/tr>");
document.writeln("<\/thead>");
document.writeln("<\/tr><\/thead>");
document.writeln("<tbody>");
var numTypes = plugin.length;
var mimetype;
var enabled;
var enabledPlugin;
for (var j = 0; j < numTypes; j++)
{
mimetype = plugin[j];
if (mimetype)
{
enabled = pluginsbundle.GetStringFromName("no_label");
enabledPlugin = mimetype.enabledPlugin;
if (enabledPlugin && (enabledPlugin.filename == plugin.filename))
enabled = pluginsbundle.GetStringFromName("yes_label");
document.writeln("<tr>");
document.writeln("<td>" + mimetype.type + "<\/td>");
document.writeln("<td>" + mimetype.description + "<\/td>");
document.writeln("<td>" + mimetype.suffixes + "<\/td>");
document.writeln("<td>" + enabled + "<\/td>");
document.writeln("<\/tr>");
}
}