diff --git a/dom/locales/en-US/chrome/plugins.properties b/dom/locales/en-US/chrome/plugins.properties index da1a6886676d..123896c3df43 100644 --- a/dom/locales/en-US/chrome/plugins.properties +++ b/dom/locales/en-US/chrome/plugins.properties @@ -11,6 +11,7 @@ enabledplugins_label=Enabled plugins nopluginsareenabled_label=No enabled plugins found findpluginupdates_label=Find updates for installed plugins at file_label=File: +path_label=Path: version_label=Version: state_label=State: mimetype_label=MIME Type diff --git a/toolkit/content/plugins.html b/toolkit/content/plugins.html index da68fa4c2593..866209750468 100644 --- a/toolkit/content/plugins.html +++ b/toolkit/content/plugins.html @@ -95,9 +95,9 @@ "STATE_OUTDATED", "STATE_VULNERABLE_UPDATE_AVAILABLE", "STATE_VULNERABLE_NO_UPDATE"].forEach(function(label) { - stateNames[Ci.nsIBlocklistService[label]] = label; + stateNames[Ci.nsIBlocklistService[label]] = label; }); - + for (var i = 0; i < aPlugins.length; i++) { var plugin = aPlugins[i]; if (plugin) { @@ -119,6 +119,15 @@ fileDd.appendChild(document.createTextNode(plugin.pluginLibraries)); dl.appendChild(fileDd); + // "Path: /usr/lib/mozilla/plugins/libtotem-cone-plugin.so" + var pathDd = document.createElement("dd"); + var path = document.createElement("span"); + path.setAttribute("class", "label"); + path.appendChild(document.createTextNode(pluginsbundle.GetStringFromName("path_label") + " ")); + pathDd.appendChild(path); + pathDd.appendChild(document.createTextNode(plugin.pluginFullpath)); + dl.appendChild(pathDd); + // "Version: " var versionDd = document.createElement("dd"); var version = document.createElement("span"); diff --git a/toolkit/mozapps/extensions/PluginProvider.jsm b/toolkit/mozapps/extensions/PluginProvider.jsm index ec4457547b3e..fb85e12d868b 100644 --- a/toolkit/mozapps/extensions/PluginProvider.jsm +++ b/toolkit/mozapps/extensions/PluginProvider.jsm @@ -353,6 +353,13 @@ function PluginWrapper(aId, aName, aDescription, aTags) { return libs; }); + this.__defineGetter__("pluginFullpath", function() { + let paths = []; + for (let tag of aTags) + paths.push(tag.fullpath); + return paths; + }) + this.__defineGetter__("pluginMimeTypes", function() { let types = []; for (let tag of aTags)