Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ax_tools: no warning noise when dumping an ax tree by ax_dump tools
Reorganize AXElementWrapper to move warning logic out and let decide the caller whether a warning should be reported or ignored. Because of imperfect NSAccessbility implementation in browsers, certain methods fail. When ax_dump_tree dumps an ax tree, it calls all possible NSAccessibility attributes, and thus the ax_dump_tree output may get noisy. Scope the warnings reporting to ax scripting which makes targeted NSAccessibility attribute calls only, and thus it doesn't have the same issue as ax_dump_tree has. In other words give a proper implementation of the feature implemented in CL 3585030. Followup of: https://chromium-review.googlesource.com/c/chromium/src/+/3585030 Change-Id: I1556d529a810beba49379352a37664f05e89398a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3810553 Reviewed-by: Nektarios Paisios <nektar@chromium.org> Commit-Queue: Alexander Surkkov <asurkov@igalia.com> Cr-Commit-Position: refs/heads/main@{#1033547}
- Loading branch information
Showing
8 changed files
with
96 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.