Revert "Stops computing an artificial accessible name from inner text on Mac"
This reverts commit 6772afd3. Reason for revert: Caused test failures of PDFExtensionAccessibilityTreeDumpTest. Bug: 1113093 Original change's description: > Stops computing an artificial accessible name from inner text on Mac > > When an object on Mac is focusable but has no value or name, we compute its accessible description > from its inner text. > Unfortunately, we were adding a space between the concatenation of each piece of text coming from each child object > which creates a mismatch between the text offsets returned by AXPosition and text markers vs. the actual text contents. > If extra spaces are needed, they should be added by Blink, not by the browser. > This patch removes the code that computes the inner text completely since > no other screen reader announces focusable items unless they have an accessible name, > and it is not proper to add an accessible name if there is none. > > AX-Relnotes: On Mac and same as on all other platforms, navigating by tab now does not announce > the text contained in a large container such as a table row if that container is focusable. > > R=dmazzoni@chromium.org > > Change-Id: Iac5f321113595a2372df03bb119ab1c7a6f1bbf4 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2308649 > Commit-Queue: Nektarios Paisios <nektar@chromium.org> > Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org> > Cr-Commit-Position: refs/heads/master@{#794574} TBR=dmazzoni@chromium.org,nektar@chromium.org Change-Id: I10d7260e2d8be39f632213925164679f1982b3d2 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2338694Reviewed-by:Tsuyoshi Horo <horo@chromium.org> Commit-Queue: Tsuyoshi Horo <horo@chromium.org> Cr-Commit-Position: refs/heads/master@{#794946}
Showing
Please register or sign in to comment