mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 577694 - Add detection of accessibility instantiation [r=mark.finkle]
This commit is contained in:
parent
6640b227f7
commit
8c8aec2bf9
@ -117,6 +117,19 @@ let MetadataCollector = {
|
||||
accessibilities.push({ name: prefName, value: prefValue });
|
||||
}
|
||||
|
||||
/* Detect accessibility instantiation
|
||||
* (David Bolter's code from bug 577694) */
|
||||
let enabled;
|
||||
try {
|
||||
enabled = Components.manager.QueryInterface(Ci.nsIServiceManager)
|
||||
.isServiceInstantiatedByContractID(
|
||||
"@mozilla.org/accessibilityService;1",
|
||||
Ci.nsISupports);
|
||||
} catch (ex) {
|
||||
enabled = false;
|
||||
}
|
||||
accessibilities.push({name: "isInstantiated", value: enabled});
|
||||
|
||||
return accessibilities;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user