New issue
Advanced search Search tips

Issue 768984 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature
Team-Accessibility



Sign in to add a comment

Feature request: a tool to help debug IA2

Project Member Reported by aleventhal@chromium.org, Sep 26 2017

Issue description

Current tools on Windows for debugging IAccessible2 (IA2) are not as helpful as they could be. AccProbe is very buggy, and AViewer has a limited feature set.

In the short term, a tool that dumps IA2 events to the console would be very helpful. It could reuse Chromium accessibility event recording code. 

In the long term, we could possibly serve events and objects and pick them up via the Automation Inspector interface.


 
Description: Show this description
Components: -UI>Accessibility Internals>Accessibility
Project Member

Comment 3 by bugdroid1@chromium.org, Sep 27 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/77c82741f2b490b01bb2dca1d1717ae9325abf17

commit 77c82741f2b490b01bb2dca1d1717ae9325abf17
Author: Aaron Leventhal <aleventhal@chromium.org>
Date: Wed Sep 27 14:38:56 2017

ax_dump_events

Standalone executable tool that helps developers debug IAccessible2 events from any application.
This tool is an alternative to AccProbe, which is buggy, and AViewer, which is not feature rich.
The first version of ax_dump_events is barebones and simply displays events on console, but has
a lot of room for future expansion (e.g., serve info to a GUI, dump the tree structure etc.).

As an example of how this makes easier, when there is a bug with NVDA/JAWS in Chrome that doesn't 
occur with Firefox, we can check what events are emitted by Firefox for the same interactions and 
compare them with Chrome.

The ax_dump_events tool shares code with our testing infrastructure (AccessibilityEventRecorder). 

Run via:
> ax_dump_events --pid=[processid]

Bug:  768984 
Change-Id: I4035dfb45ab5bb78bb4cd55f3f31c332fded5f99
Reviewed-on: https://chromium-review.googlesource.com/685694
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504667}
[modify] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/BUILD.gn
[modify] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/content/browser/accessibility/accessibility_event_recorder.cc
[modify] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/content/browser/accessibility/accessibility_event_recorder.h
[modify] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/content/browser/accessibility/accessibility_event_recorder_mac.mm
[modify] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/content/browser/accessibility/accessibility_event_recorder_win.cc
[modify] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/content/browser/accessibility/dump_accessibility_events_browsertest.cc
[modify] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/content/test/BUILD.gn
[add] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/tools/accessibility/DEPS
[add] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/tools/accessibility/inspect/BUILD.gn
[add] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/tools/accessibility/inspect/README.md
[add] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/tools/accessibility/inspect/ax_dump_events.cc
[add] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/tools/accessibility/inspect/ax_event_server.cc
[add] https://crrev.com/77c82741f2b490b01bb2dca1d1717ae9325abf17/tools/accessibility/inspect/ax_event_server.h

Status: Fixed (was: Started)
Project Member

Comment 5 by bugdroid1@chromium.org, Oct 2 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/956403560d45cf0c5bf0a375d8860c772f58fa24

commit 956403560d45cf0c5bf0a375d8860c772f58fa24
Author: Aaron Leventhal <aleventhal@chromium.org>
Date: Mon Oct 02 22:32:59 2017

Capture accessibility events for any process

This change was accidentally removed from CL 685694 before landing and was already 
reviewed by dmazzoni in that CL.

It listens to the events for the passed-in process and uses out-of-context mode to capture 
the MSAA/IA2 events for general listening when not linked against the browser itself.

Bug:  768984 
Change-Id: Ied391e3bcf8718b5ca09b9e657a5317444f5f1a4
Reviewed-on: https://chromium-review.googlesource.com/695727
Reviewed-by: David Tseng <dtseng@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505818}
[modify] https://crrev.com/956403560d45cf0c5bf0a375d8860c772f58fa24/content/browser/accessibility/accessibility_event_recorder_win.cc

Sign in to add a comment