mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 673381, patch v4 to add NSPR/NSS library version numbers to about:support, r=dtownsend
This commit is contained in:
parent
7dbac8b11b
commit
1cb75567ff
@ -119,6 +119,7 @@ window.onload = function () {
|
||||
populateExtensionsSection();
|
||||
populateGraphicsSection();
|
||||
populateJavaScriptSection();
|
||||
populateLibVersionsSection();
|
||||
}
|
||||
|
||||
function populateExtensionsSection() {
|
||||
@ -172,6 +173,41 @@ function populatePreferencesSection() {
|
||||
appendChildren(document.getElementById("prefs-tbody"), trPrefs);
|
||||
}
|
||||
|
||||
function populateLibVersionsSection() {
|
||||
function pushInfoRow(table, name, value, value2)
|
||||
{
|
||||
table.push(createParentElement("tr", [
|
||||
createElement("td", name),
|
||||
createElement("td", value),
|
||||
createElement("td", value2),
|
||||
]));
|
||||
}
|
||||
|
||||
var v = null;
|
||||
try { // just to be safe
|
||||
v = Cc["@mozilla.org/security/nssversion;1"].getService(Ci.nsINSSVersion);
|
||||
} catch(e) {}
|
||||
if (!v)
|
||||
return;
|
||||
|
||||
let bundle = Services.strings.createBundle("chrome://global/locale/aboutSupport.properties");
|
||||
let libversions_tbody = document.getElementById("libversions-tbody");
|
||||
|
||||
let trLibs = [];
|
||||
trLibs.push(createParentElement("tr", [
|
||||
createElement("th", ""),
|
||||
createElement("th", bundle.GetStringFromName("minLibVersions")),
|
||||
createElement("th", bundle.GetStringFromName("loadedLibVersions")),
|
||||
]));
|
||||
pushInfoRow(trLibs, "NSPR", v.NSPR_MinVersion, v.NSPR_Version);
|
||||
pushInfoRow(trLibs, "NSS", v.NSS_MinVersion, v.NSS_Version);
|
||||
pushInfoRow(trLibs, "NSS Util", v.NSSUTIL_MinVersion, v.NSSUTIL_Version);
|
||||
pushInfoRow(trLibs, "NSS SSL", v.NSSSSL_MinVersion, v.NSSSSL_Version);
|
||||
pushInfoRow(trLibs, "NSS S/MIME", v.NSSSMIME_MinVersion, v.NSSSMIME_Version);
|
||||
|
||||
appendChildren(libversions_tbody, trLibs);
|
||||
}
|
||||
|
||||
function populateGraphicsSection() {
|
||||
function createHeader(name)
|
||||
{
|
||||
|
@ -270,6 +270,16 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - -->
|
||||
<h2 class="major-section">
|
||||
&aboutSupport.libraryVersionsTitle;
|
||||
</h2>
|
||||
|
||||
<table>
|
||||
<tbody id="libversions-tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
@ -47,6 +47,8 @@ variant of aboutSupport.showDir.label. -->
|
||||
<!ENTITY aboutSupport.jsTitle "JavaScript">
|
||||
<!ENTITY aboutSupport.jsIncrementalGC "Incremental GC">
|
||||
|
||||
<!ENTITY aboutSupport.libraryVersionsTitle "Library Versions">
|
||||
|
||||
<!ENTITY aboutSupport.installationHistoryTitle "Installation History">
|
||||
<!ENTITY aboutSupport.updateHistoryTitle "Update History">
|
||||
|
||||
|
@ -40,3 +40,6 @@ driverVersion2 = Driver Version (GPU #2)
|
||||
driverDate2 = Driver Date (GPU #2)
|
||||
isGPU2Active = GPU #2 Active
|
||||
webglRenderer = WebGL Renderer
|
||||
|
||||
minLibVersions = Expected minimum version
|
||||
loadedLibVersions = Version in use
|
||||
|
Loading…
Reference in New Issue
Block a user