bug 844496 - handle the case of optgroup accessible's parent being a document with no content r=surkov

This commit is contained in:
Trevor Saunders 2013-02-23 16:23:14 -05:00
Родитель 493bd5a2ab
Коммит 2d3fd4f887
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -1757,6 +1757,7 @@ DocAccessible::UpdateTree(Accessible* aContainer, nsIContent* aChildNode,
// XXX: since select change insertion point of option contained by optgroup
// then we need to have special processing for them (bug 690417).
if (!aIsInsert && aChildNode->IsHTML(nsGkAtoms::optgroup) &&
aContainer->GetContent() &&
aContainer->GetContent()->IsHTML(nsGkAtoms::select)) {
for (nsIContent* optContent = aChildNode->GetFirstChild(); optContent;
optContent = optContent->GetNextSibling()) {