Bug 1119979 - hide IPC a11y architecture under pref, r=davidb

This commit is contained in:
Alexander Surkov 2015-01-12 14:37:40 -05:00
parent 8ae9433dfe
commit 99ce7876fa
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#include "mozilla/a11y/DocManager.h"
#include "mozilla/a11y/FocusManager.h"
#include "mozilla/a11y/SelectionManager.h"
#include "mozilla/Preferences.h"
#include "nsIObserver.h"
@ -254,7 +255,8 @@ IPCAccessibilityActive()
#ifdef MOZ_B2G
return false;
#else
return XRE_GetProcessType() == GeckoProcessType_Content;
return XRE_GetProcessType() == GeckoProcessType_Content &&
mozilla::Preferences::GetBool("accessibility.ipc_architecture.enabled", true);
#endif
}

View File

@ -710,6 +710,8 @@ pref("canvas.path.enabled", true);
// further checks.
pref("accessibility.force_disabled", 0);
pref("accessibility.ipc_architecture.enabled", true);
#ifdef XP_WIN
// Some accessibility tools poke at windows in the plugin process during setup
// which can cause hangs. To hack around this set accessibility.delay_plugins