зеркало из https://github.com/mozilla/gecko-dev.git
Bug 661961 - change about:plugins to add the path for every extension. r=bsmedberg
This commit is contained in:
Родитель
87f371fa11
Коммит
632aa8e3a5
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче