mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 759158 - Introduce accessibility status to about:support. r=gavin
This commit is contained in:
parent
e1d2cea11f
commit
41fde0e18a
@ -95,6 +95,7 @@ window.onload = function () {
|
||||
populateExtensionsSection();
|
||||
populateGraphicsSection();
|
||||
populateJavaScriptSection();
|
||||
populateAccessibilitySection();
|
||||
populateLibVersionsSection();
|
||||
}
|
||||
|
||||
@ -404,6 +405,20 @@ function populateJavaScriptSection() {
|
||||
document.getElementById("javascript-incremental-gc").textContent = enabled ? "1" : "0";
|
||||
}
|
||||
|
||||
function populateAccessibilitySection() {
|
||||
var active;
|
||||
try {
|
||||
active = Components.manager.QueryInterface(Ci.nsIServiceManager)
|
||||
.isServiceInstantiatedByContractID(
|
||||
"@mozilla.org/accessibilityService;1",
|
||||
Ci.nsISupports);
|
||||
} catch (ex) {
|
||||
active = false;
|
||||
}
|
||||
|
||||
document.getElementById("a11y-activated").textContent = active ? "1" : "0";
|
||||
}
|
||||
|
||||
function getPrefValue(aName) {
|
||||
let value = "";
|
||||
let type = Services.prefs.getPrefType(aName);
|
||||
|
@ -239,6 +239,24 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - -->
|
||||
<h2 class="major-section">
|
||||
&aboutSupport.a11yTitle;
|
||||
</h2>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="column">
|
||||
&aboutSupport.a11yActivated;
|
||||
</th>
|
||||
|
||||
<td id="a11y-activated">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - -->
|
||||
<h2 class="major-section">
|
||||
&aboutSupport.libraryVersionsTitle;
|
||||
|
@ -51,6 +51,9 @@ variant of aboutSupport.showDir.label. -->
|
||||
<!ENTITY aboutSupport.jsTitle "JavaScript">
|
||||
<!ENTITY aboutSupport.jsIncrementalGC "Incremental GC">
|
||||
|
||||
<!ENTITY aboutSupport.a11yTitle "Accessibility">
|
||||
<!ENTITY aboutSupport.a11yActivated "Activated">
|
||||
|
||||
<!ENTITY aboutSupport.libraryVersionsTitle "Library Versions">
|
||||
|
||||
<!ENTITY aboutSupport.installationHistoryTitle "Installation History">
|
||||
|
Loading…
Reference in New Issue
Block a user