Commit 05422fee authored by nektar's avatar nektar Committed by Commit bot

Exposes <hr> elements that do not have an ARIA label.

BUG=384723
R=dmazzoni@chromium.org
TESTED=browser tests, using Jaws

Review URL: https://codereview.chromium.org/1695673004

Cr-Commit-Position: refs/heads/master@{#376055}
parent c789639d
android.webkit.WebView focusable focused scrollable android.webkit.WebView focusable focused scrollable
++android.view.View clickable name='Before' ++android.view.View clickable name='Before.'
++android.view.View role_description='splitter' clickable name='Dividing line' ++android.view.View role_description='splitter' clickable name='Dividing line'
++android.view.View clickable name='After' ++android.view.View clickable name='Middle.'
\ No newline at end of file ++android.view.View role_description='splitter'
++android.view.View clickable name='After.'
AXWebArea AXRoleDescription='HTML content' AXWebArea AXRoleDescription='HTML content'
++AXGroup AXRoleDescription='group' ++AXGroup AXRoleDescription='group'
++++AXStaticText AXRoleDescription='text' AXValue='Before' ++++AXStaticText AXRoleDescription='text' AXValue='Before.'
++AXSplitter AXRoleDescription='splitter' AXDescription='Dividing line' ++AXSplitter AXRoleDescription='splitter' AXDescription='Dividing line'
++AXGroup AXRoleDescription='group' ++AXGroup AXRoleDescription='group'
++++AXStaticText AXRoleDescription='text' AXValue='After' ++++AXStaticText AXRoleDescription='text' AXValue='Middle.'
++AXSplitter AXRoleDescription='splitter'
++AXGroup AXRoleDescription='group'
++++AXStaticText AXRoleDescription='text' AXValue='After.'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
++IA2_ROLE_SECTION ++IA2_ROLE_PARAGRAPH
++++ROLE_SYSTEM_STATICTEXT name='Before' ++++ROLE_SYSTEM_STATICTEXT name='Before.'
++ROLE_SYSTEM_SEPARATOR name='Dividing line' ++ROLE_SYSTEM_SEPARATOR name='Dividing line'
++IA2_ROLE_SECTION ++IA2_ROLE_PARAGRAPH
++++ROLE_SYSTEM_STATICTEXT name='After' ++++ROLE_SYSTEM_STATICTEXT name='Middle.'
++ROLE_SYSTEM_SEPARATOR
++IA2_ROLE_PARAGRAPH
++++ROLE_SYSTEM_STATICTEXT name='After.'
...@@ -5,8 +5,10 @@ ...@@ -5,8 +5,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<body> <body>
Before <p>Before.</p>
<hr aria-label="Dividing line"> <hr aria-label="Dividing line">
After <p>Middle.</p>
<hr>
<p>After.</p>
</body> </body>
</html> </html>
...@@ -670,6 +670,9 @@ bool AXLayoutObject::computeAccessibilityIsIgnored(IgnoredReasons* ignoredReason ...@@ -670,6 +670,9 @@ bool AXLayoutObject::computeAccessibilityIsIgnored(IgnoredReasons* ignoredReason
if (roleValue() == DetailsRole) if (roleValue() == DetailsRole)
return false; return false;
if (roleValue() == MarkRole)
return false;
if (roleValue() == MathRole) if (roleValue() == MathRole)
return false; return false;
...@@ -679,10 +682,10 @@ bool AXLayoutObject::computeAccessibilityIsIgnored(IgnoredReasons* ignoredReason ...@@ -679,10 +682,10 @@ bool AXLayoutObject::computeAccessibilityIsIgnored(IgnoredReasons* ignoredReason
if (roleValue() == RubyRole) if (roleValue() == RubyRole)
return false; return false;
if (roleValue() == TimeRole) if (roleValue() == SplitterRole)
return false; return false;
if (roleValue() == MarkRole) if (roleValue() == TimeRole)
return false; return false;
// if this element has aria attributes on it, it should not be ignored. // if this element has aria attributes on it, it should not be ignored.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment