Changeset 202516 in webkit


Ignore:
Timestamp:
Jun 27, 2016 3:13:16 PM (8 years ago)
Author:
jdiggs@igalia.com
Message:

AX: REGRESSION (r202063): ARIA role attribute is being ignored for label element
https://bugs.webkit.org/show_bug.cgi?id=159162

Reviewed by Chris Fleizach.

Source/WebCore:

createFromRenderer() was creating an AccessibilityLabel for any HTMLLabelElement which
lacked an explicitly-handled ARIA role. We should instead create an AccessibilityLabel
when there is no ARIA role.

Test: accessibility/aria-role-on-label.html

  • accessibility/AXObjectCache.cpp:

(WebCore::createFromRenderer):

LayoutTests:

This regression was caught by a GTK-specific layout test. Adding a cross-platform
test for additional coverage.

  • accessibility/aria-role-on-label.html: Added.
  • platform/gtk/accessibility/aria-role-on-label-expected.txt: Added.
  • platform/mac/accessibility/aria-role-on-label-expected.txt: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r202514 r202516  
     12016-06-27  Joanmarie Diggs  <jdiggs@igalia.com>
     2
     3        AX: REGRESSION (r202063): ARIA role attribute is being ignored for label element
     4        https://bugs.webkit.org/show_bug.cgi?id=159162
     5
     6        Reviewed by Chris Fleizach.
     7
     8        This regression was caught by a GTK-specific layout test. Adding a cross-platform
     9        test for additional coverage.
     10
     11        * accessibility/aria-role-on-label.html: Added.
     12        * platform/gtk/accessibility/aria-role-on-label-expected.txt: Added.
     13        * platform/mac/accessibility/aria-role-on-label-expected.txt: Added.
     14
    1152016-06-27  Commit Queue  <commit-queue@webkit.org>
    216
  • trunk/Source/WebCore/ChangeLog

    r202514 r202516  
     12016-06-27  Joanmarie Diggs  <jdiggs@igalia.com>
     2
     3        AX: REGRESSION (r202063): ARIA role attribute is being ignored for label element
     4        https://bugs.webkit.org/show_bug.cgi?id=159162
     5
     6        Reviewed by Chris Fleizach.
     7
     8        createFromRenderer() was creating an AccessibilityLabel for any HTMLLabelElement which
     9        lacked an explicitly-handled ARIA role. We should instead create an AccessibilityLabel
     10        when there is no ARIA role.
     11
     12        Test: accessibility/aria-role-on-label.html
     13
     14        * accessibility/AXObjectCache.cpp:
     15        (WebCore::createFromRenderer):
     16
    1172016-06-27  Commit Queue  <commit-queue@webkit.org>
    218
  • trunk/Source/WebCore/accessibility/AXObjectCache.cpp

    r202063 r202516  
    430430        return AccessibilityTreeItem::create(renderer);
    431431
    432     if (node && is<HTMLLabelElement>(node))
     432    if (node && is<HTMLLabelElement>(node) && nodeHasRole(node, nullAtom))
    433433        return AccessibilityLabel::create(renderer);
    434434
Note: See TracChangeset for help on using the changeset viewer.