зеркало из https://github.com/mozilla/pjs.git
Bug 577694 - Add detection of accessibility instantiation [r=mark.finkle]
This commit is contained in:
Родитель
3734c125a4
Коммит
69f2ce5580
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче