зеркало из https://github.com/mozilla/pjs.git
Bug 392058. Fire accessible state change events when ARIA pressed state changes. r=simon.bates, a=dsicore
This commit is contained in:
Родитель
9cd3665d92
Коммит
27ecab6f00
|
@ -1086,6 +1086,15 @@ nsDocAccessible::ARIAAttributeChanged(nsIContent* aContent, nsIAtom* aAttribute)
|
|||
return;
|
||||
}
|
||||
|
||||
if (aAttribute == nsAccessibilityAtoms::pressed) {
|
||||
nsCOMPtr<nsIAccessibleStateChangeEvent> event =
|
||||
new nsAccStateChangeEvent(targetNode,
|
||||
nsIAccessibleStates::STATE_PRESSED,
|
||||
PR_FALSE);
|
||||
FireDelayedAccessibleEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
if (aAttribute == nsAccessibilityAtoms::expanded) {
|
||||
nsCOMPtr<nsIAccessibleStateChangeEvent> event =
|
||||
new nsAccStateChangeEvent(targetNode,
|
||||
|
|
Загрузка…
Ссылка в новой задаче