• Alexander Surkov's avatar
    a11y inspect reorg: expose ChromeIdentifier attribute on mac · 8bc5afc5
    Alexander Surkov authored
    Inspect tools provide option to show internal ids of accessible
    objects, which is a handy feature for debugging and event recording.
    Platform tree formatters rely on internal accessible trees to retrieve
    object ids. It should be avoided, because the tree formatters should
    operate on external trees to produce same results not depending on how
    a tree formatter was initiated (whether by tests or by ax_dump_tree
    tool).
    
    WebKit exposes AXIdentifier attribute, which looks like a great match
    for this case. However, no comments from Apple so far about what
    exactly this attribute is for, so let's move with ChromeIdentifier
    attribute for now. Later it can be revisited.
    
    Bug: 1134623
    Change-Id: I367158bc8802734d0e9311c9739eb8da13ff0cf8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2602356
    Commit-Queue: Alexander Surkov <asurkov@igalia.com>
    Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#839602}
    8bc5afc5
browser_accessibility_cocoa.mm 146 KB