зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1371051 - Modify ContentParent to only initialize Windows a11y on Beta or Release when e10s is force-enabled; r=jimm
MozReview-Commit-ID: H0gMM2TlfpY --HG-- extra : source : 8c3d4d8fbb32a66fd521b5dda185f02e24ab3a02 extra : histedit_source : bd06ca54bf993eba750acda074b5a8e1f1a5ba31
This commit is contained in:
Родитель
41bf9f02cc
Коммит
bdf95e95b3
|
@ -1364,9 +1364,13 @@ ContentParent::Init()
|
|||
// process.
|
||||
if (nsIPresShell::IsAccessibilityActive()) {
|
||||
#if defined(XP_WIN)
|
||||
Unused <<
|
||||
SendActivateA11y(::GetCurrentThreadId(),
|
||||
a11y::AccessibleWrap::GetContentProcessIdFor(ChildID()));
|
||||
#if defined(RELEASE_OR_BETA)
|
||||
// On Windows we currently only enable a11y in the content process
|
||||
// for testing purposes.
|
||||
if (Preferences::GetBool(kForceEnableE10sPref, false))
|
||||
#endif
|
||||
Unused << SendActivateA11y(::GetCurrentThreadId(),
|
||||
a11y::AccessibleWrap::GetContentProcessIdFor(ChildID()));
|
||||
#else
|
||||
Unused << SendActivateA11y(0, 0);
|
||||
#endif
|
||||
|
@ -2773,9 +2777,13 @@ ContentParent::Observe(nsISupports* aSubject,
|
|||
// Make sure accessibility is running in content process when
|
||||
// accessibility gets initiated in chrome process.
|
||||
#if defined(XP_WIN)
|
||||
Unused <<
|
||||
SendActivateA11y(::GetCurrentThreadId(),
|
||||
a11y::AccessibleWrap::GetContentProcessIdFor(ChildID()));
|
||||
#if defined(RELEASE_OR_BETA)
|
||||
// On Windows we currently only enable a11y in the content process
|
||||
// for testing purposes.
|
||||
if (Preferences::GetBool(kForceEnableE10sPref, false))
|
||||
#endif
|
||||
Unused << SendActivateA11y(::GetCurrentThreadId(),
|
||||
a11y::AccessibleWrap::GetContentProcessIdFor(ChildID()));
|
||||
#else
|
||||
Unused << SendActivateA11y(0, 0);
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче