Bug 717505 - Crash [@ nsAccessible::VisibilityState] when closing a tab. r=roc

This commit is contained in:
David Bolter 2012-01-23 13:24:13 -05:00
Родитель 05d3f21653
Коммит 0ceea254d2
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -616,6 +616,9 @@ nsAccessible::VisibilityState()
} while (accessible = accessible->Parent());
nsIFrame* frame = GetFrame();
if (!frame)
return vstates;
const nsCOMPtr<nsIPresShell> shell(GetPresShell());
// We need to know if at least a kMinPixels around the object is visible,