forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flag to expose ignored nodes to accessibility tree.
This introduces a new base::Feature and corresponding RuntimeEnabledFeature called AccessibilityExposeIgnoredNodes. Currently, every AXObject in Blink can be in one of three states: 1. Normal (not ignored, included in the tree) 2. Ignored and included in the tree 3. Ignored and not included in the tree Having ignored nodes is important. Having two different types of ignored nodes is a source of both unnecessary complexity (causing bugs) and also performance issues - because we're wasting more time deciding whether to include the node than it'd take to just include them, especially when the ignored state changes. The first step was to expose the HTML element to the tree, because that required rebaselining nearly every test. That step is now complete, the AccessibilityExposeHTMLElement flag is now on by default and will be removed in the next milestone. This next step includes all nodes in the tree, with the exception of ignored static text nodes, because those can be safely skipped - those typically represent non-rendered whitespace in the HTML source. By excluding those from the tree we can avoid rebaselining 80% of tests. This patch enables AccessibilityExposeIgnoredNodes for just one test and rebaselines it. Follow-ups will enable this flag for all accessibility tests, rebaselining a few each time, and then flip the flag. Bug: 1063155 Change-Id: I74d859a74e75c3f18d71f8e0196f2624d0a98c18 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2459071 Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by: Nektarios Paisios <nektar@chromium.org> Reviewed-by: enne <enne@chromium.org> Reviewed-by: Kurt Catti-Schmidt <kschmi@microsoft.com> Reviewed-by: Aaron Leventhal <aleventhal@chromium.org> Cr-Commit-Position: refs/heads/master@{#817822}
- Loading branch information
1 parent
f99e531
commit 20073b8
Showing
19 changed files
with
98 additions
and
27 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
8 changes: 3 additions & 5 deletions
8
content/test/data/accessibility/html/input-radio-checkbox-label-expected-auralinux.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
[document web] | ||
++[section] | ||
++++[radio button] name='label ignored for radio button' checkable:true | ||
++++[check box] name='label ignored for checkbox' checkable:true | ||
++++[radio button] name='label ignored for radio button' labelled-by checkable:true | ||
++++[check box] name='label ignored for checkbox' labelled-by checkable:true | ||
++++[label] name='label exposed for radio button ' label-for | ||
++++++[static] name='label exposed for radio button ' | ||
++++++[radio button] name='label exposed for radio button' labelled-by checkable:true | ||
++++++[static] name=' ' | ||
++++[label] name='label exposed for checkbox ' label-for | ||
++++++[static] name='label exposed for checkbox ' | ||
++++++[check box] name='label exposed for checkbox' labelled-by checkable:true | ||
++++++[static] name=' ' | ||
++++++[check box] name='label exposed for checkbox' labelled-by checkable:true |
13 changes: 8 additions & 5 deletions
13
content/test/data/accessibility/html/input-radio-checkbox-label-expected-blink.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
rootWebArea | ||
++genericContainer ignored | ||
++++genericContainer | ||
++++++radioButton name='label ignored for radio button' checkedState=false | ||
++++++checkBox name='label ignored for checkbox' checkedState=false | ||
++++++labelText ignored | ||
++++++++staticText ignored name='label ignored for radio button ' | ||
++++++++++inlineTextBox ignored name='label ignored for radio button ' | ||
++++++++radioButton name='label ignored for radio button' checkedState=false | ||
++++++labelText ignored | ||
++++++++staticText ignored name='label ignored for checkbox ' | ||
++++++++++inlineTextBox ignored name='label ignored for checkbox ' | ||
++++++++checkBox name='label ignored for checkbox' checkedState=false | ||
++++++labelText name='label exposed for radio button ' | ||
++++++++staticText name='label exposed for radio button ' | ||
++++++++++inlineTextBox name='label exposed for radio button ' | ||
++++++++radioButton name='label exposed for radio button' checkedState=false | ||
++++++++staticText name=' ' | ||
++++++++++inlineTextBox name=' ' | ||
++++++labelText name='label exposed for checkbox ' | ||
++++++++staticText name='label exposed for checkbox ' | ||
++++++++++inlineTextBox name='label exposed for ' | ||
++++++++++inlineTextBox name='checkbox ' | ||
++++++++checkBox name='label exposed for checkbox' checkedState=false | ||
++++++++staticText name=' ' |
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
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