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

View File

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