Bug 1065848 - Only load AccessFu.jsm when we really need it. r=eeejay

This commit is contained in:
Fabrice Desré 2014-09-12 15:38:49 -07:00
parent c2de2fc5e5
commit ccff1279ec

View File

@ -325,6 +325,9 @@ setUpdateTrackingId();
(function setupAccessibility() {
let accessibilityScope = {};
SettingsListener.observe("accessibility.screenreader", false, function(value) {
if (!value) {
return;
}
if (!('AccessFu' in accessibilityScope)) {
Cu.import('resource://gre/modules/accessibility/AccessFu.jsm',
accessibilityScope);