зеркало из https://github.com/mozilla/pjs.git
bug 431474 - Document Accessibles not getting state_focused when they have focus
patch by aaronleventhal@moonset.net (Aaron Leventhal) r=surkov r=me a1.9=beltzner
This commit is contained in:
Родитель
37f3e34b2a
Коммит
b33de73d9d
|
@ -257,6 +257,9 @@ nsDocAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
|
||||||
// which it should be if it is scrollable. A XUL document could be focusable.
|
// which it should be if it is scrollable. A XUL document could be focusable.
|
||||||
// See bug 376803.
|
// See bug 376803.
|
||||||
*aState |= nsIAccessibleStates::STATE_FOCUSABLE;
|
*aState |= nsIAccessibleStates::STATE_FOCUSABLE;
|
||||||
|
if (gLastFocusedNode == mDOMNode) {
|
||||||
|
*aState |= nsIAccessibleStates::STATE_FOCUSED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mIsContentLoaded) {
|
if (!mIsContentLoaded) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче