Issue #2503 - Part 3: Add CPU capabilities to about:support.

This commit is contained in:
Moonchild 2024-04-14 21:58:20 +02:00 committed by roytam1
commit 407a79e79f
3 changed files with 14 additions and 0 deletions

View file

@ -39,6 +39,10 @@ var snapshotFormatters = {
$("application-box").textContent = data.name;
$("useragent-box").textContent = data.userAgent;
$("os-box").textContent = data.osVersion;
let cpucaps = navigator.cpuHasSSE2?"SSE2 ":"";
cpucaps += navigator.cpuHasAVX?"AVX ":"";
cpucaps += navigator.cpuHasAVX2?"AVX2 ":"";
$("cpucap-box").textContent = cpucaps;
$("binary-box").textContent = Services.dirsvc.get("XREExeF", Ci.nsIFile).path;
$("supportLink").href = data.supportURL;
let version = Services.appinfo.version;

View file

@ -142,6 +142,15 @@
</td>
</tr>
<tr>
<th class="column">
&aboutSupport.appBasicsCPUCaps;
</th>
<td id="cpucap-box">
</td>
</tr>
<tr class="no-copy">
<th class="column">
&aboutSupport.appBasicsBinary;

View file

@ -47,6 +47,7 @@ Windows/Mac use the term "Folder" instead of "Directory" -->
<!ENTITY aboutSupport.appBasicsBuildConfig "Build Configuration">
<!ENTITY aboutSupport.appBasicsUserAgent "User Agent">
<!ENTITY aboutSupport.appBasicsOS "OS">
<!ENTITY aboutSupport.appBasicsCPUCaps "CPU Capabilities">
<!ENTITY aboutSupport.appBasicsMemoryUse "Memory Use">
<!ENTITY aboutSupport.appBasicsPerformance "Performance">