arc-a11y: Prevent infinite loop in AX name computation
This CL adds a boolean argument to computeAXName(), and it is used when computing the name, when the node is labeled by another node. Without these changes, A11yNodeInfoDatWrapperTest.LabeledByLoop will go through an infinite loop. Also rename "labelled" to "labeled" for consistency. Bug: b:161294907 Test: AccessibilityNodeInfoDataWrapperTest.LabeledByLoop Change-Id: I09f6415064cd0f8a3a159b08c217e4f5784c1528 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2301555 Commit-Queue: Sara Kato <sarakato@chromium.org> Reviewed-by:Hiroki Sato <hirokisato@chromium.org> Cr-Commit-Position: refs/heads/master@{#789340}
Showing
Please register or sign in to comment