diff --git a/browser/app/profile/extensions/testpilot@labs.mozilla.com/modules/metadata.js b/browser/app/profile/extensions/testpilot@labs.mozilla.com/modules/metadata.js index e7120c5ce79..f380cced905 100644 --- a/browser/app/profile/extensions/testpilot@labs.mozilla.com/modules/metadata.js +++ b/browser/app/profile/extensions/testpilot@labs.mozilla.com/modules/metadata.js @@ -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; },