зеркало из https://github.com/mozilla/gecko-dev.git
Bug 351948. Regression, location bar no longer has accessible name. r=ginn.chen, sr=neil
This commit is contained in:
Родитель
71bcdd181f
Коммит
818cab0b10
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче