mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
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:
parent
1b4ae4fc79
commit
f777399574
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user