I mistyped one of surkov's review comments for
bug 436453. (And the code does finally make sense to me.) This apparently fixes some mochitests that, for some reason, aren't run on tinderbox.
I mistyped one of surkov's review comments for
bug 436453. (And the code does finally make sense to me.) This apparently fixes some mochitests that, for some reason, aren't run on tinderbox.
--- a/accessible/src/base/nsAccessibilityUtils.cpp
+++ b/accessible/src/base/nsAccessibilityUtils.cpp
@@ -789,17 +789,17 @@ nsIContent*
nsAccUtils::FindNeighbourPointingToNode(nsIContent *aForNode,
nsIAtom **aRelationAttrs,
PRUint32 aAttrNum,
nsIAtom *aTagName,
PRUint32 aAncestorLevelsToSearch)
{
nsAutoString controlID;
if (!nsAccUtils::GetID(aForNode, controlID)) {
- if (aForNode->IsInAnonymousSubtree())
+ if (!aForNode->IsInAnonymousSubtree())
return nsnull;
aForNode->GetAttr(kNameSpaceID_None, nsAccessibilityAtoms::anonid, controlID);
if (controlID.IsEmpty())
return nsnull;
}
// Look for label in subtrees of nearby ancestors