Bug 756529 - Move accessfu setting to accessibility.accessfu.activate. r=davidb

This commit is contained in:
Eitan Isaacson 2012-05-18 11:56:38 -07:00
parent c53c69acbb
commit 74b2234cf0
2 changed files with 6 additions and 6 deletions

View File

@ -39,12 +39,12 @@ var AccessFu = {
this.presenters = [];
this.prefsBranch = Cc['@mozilla.org/preferences-service;1']
.getService(Ci.nsIPrefService).getBranch('accessibility.');
this.prefsBranch.addObserver('accessfu', this, false);
.getService(Ci.nsIPrefService).getBranch('accessibility.accessfu.');
this.prefsBranch.addObserver('activate', this, false);
let accessPref = ACCESSFU_DISABLE;
try {
accessPref = this.prefsBranch.getIntPref('accessfu');
accessPref = this.prefsBranch.getIntPref('activate');
} catch (x) {
}
@ -176,8 +176,8 @@ var AccessFu = {
this._disable();
break;
case 'nsPref:changed':
if (aData == 'accessfu')
this._processPreferences(this.prefsBranch.getIntPref('accessfu'));
if (aData == 'activate')
this._processPreferences(this.prefsBranch.getIntPref('activate'));
break;
case 'accessible-event':
let event;

View File

@ -760,7 +760,7 @@ pref("ui.scrolling.min_scrollable_distance", -1);
pref("ui.zooming.animation_frames", "");
// Enable accessibility mode if platform accessibility is enabled.
pref("accessibility.accessfu", 2);
pref("accessibility.accessfu.activate", 2);
// Mobile manages state by autodetection
pref("network.manage-offline-status", true);