Bug 351948. Regression, location bar no longer has accessible name. r=ginn.chen, sr=neil

This commit is contained in:
aaronleventhal%moonset.net 2006-09-10 17:54:32 +00:00
Родитель 71bcdd181f
Коммит 818cab0b10
1 изменённых файлов: 8 добавлений и 5 удалений

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

@ -1739,11 +1739,14 @@ nsresult nsAccessible::GetXULName(nsAString& aLabel, PRBool aCanAggregateSubtree
nsIContent *bindingParent = content->GetBindingParent(); nsIContent *bindingParent = content->GetBindingParent();
nsIContent *parent = bindingParent? bindingParent->GetParent() : nsIContent *parent = bindingParent? bindingParent->GetParent() :
content->GetParent(); content->GetParent();
if (parent && parent->Tag() == nsAccessibilityAtoms::toolbaritem && while (parent) {
parent->GetAttr(kNameSpaceID_None, nsAccessibilityAtoms::title, label)) { if (parent->Tag() == nsAccessibilityAtoms::toolbaritem &&
label.CompressWhitespace(); parent->GetAttr(kNameSpaceID_None, nsAccessibilityAtoms::title, label)) {
aLabel = label; label.CompressWhitespace();
return NS_OK; aLabel = label;
return NS_OK;
}
parent = parent->GetParent();
} }
// Don't use AppendFlatStringFromSubtree for container widgets like menulist // Don't use AppendFlatStringFromSubtree for container widgets like menulist