bug 429622 - Crash [@ nsRootAccessible::GetState(unsigned int*, unsigned int*) ] r=aaronlev a1.9=beltzner

This commit is contained in:
marco.zehe@googlemail.com 2008-04-20 23:24:08 -07:00
Родитель d5ce2d9e79
Коммит 67c1d16c13
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -238,10 +238,12 @@ nsRootAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
if (privateDOMWindow) {
nsIFocusController *focusController =
privateDOMWindow->GetRootFocusController();
PRBool isActive = PR_FALSE;
focusController->GetActive(&isActive);
if (isActive) {
*aExtraState |= nsIAccessibleStates::EXT_STATE_ACTIVE;
if (focusController) {
PRBool isActive = PR_FALSE;
focusController->GetActive(&isActive);
if (isActive) {
*aExtraState |= nsIAccessibleStates::EXT_STATE_ACTIVE;
}
}
}
#ifdef MOZ_XUL