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:
marco.zehe@googlemail.com 2008-05-04 10:42:19 -07:00
parent 1b4ae4fc79
commit f777399574

View File

@ -257,6 +257,9 @@ nsDocAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
// which it should be if it is scrollable. A XUL document could be focusable.
// See bug 376803.
*aState |= nsIAccessibleStates::STATE_FOCUSABLE;
if (gLastFocusedNode == mDOMNode) {
*aState |= nsIAccessibleStates::STATE_FOCUSED;
}
}
if (!mIsContentLoaded) {