зеркало из https://github.com/mozilla/gecko-dev.git
Bug 335900 add a null check for previous selected radio
r=neil
This commit is contained in:
Родитель
90406a6a5c
Коммит
ce8a3c3940
|
@ -1531,8 +1531,10 @@ nsHTMLInputElement::PostHandleEvent(nsEventChainPostVisitor& aVisitor)
|
|||
// Fire event for the previous selected radio.
|
||||
nsCOMPtr<nsIDOMHTMLInputElement> previous =
|
||||
do_QueryInterface(aVisitor.mItemData);
|
||||
FireEventForAccessibility(previous, aVisitor.mPresContext,
|
||||
NS_LITERAL_STRING("RadioStateChange"));
|
||||
if(previous) {
|
||||
FireEventForAccessibility(previous, aVisitor.mPresContext,
|
||||
NS_LITERAL_STRING("RadioStateChange"));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче