Changeset 249534 in webkit


Ignore:
Timestamp:
Sep 5, 2019 10:27:14 AM (5 years ago)
Author:
Chris Fleizach
Message:

AX: children cache are not re-computed if tab index is removed
https://bugs.webkit.org/show_bug.cgi?id=201502

Reviewed by Zalan Bujtas.

Source/WebCore:

Test: accessibility/tabindex-removed.html

If the tabindex changes, it can potentially affect whether an element is accessible. If we don't update the children cache
information can be stale and lead to incorrect navigation with VoiceOver.

  • accessibility/AXObjectCache.cpp:

(WebCore::AXObjectCache::handleAttributeChange):

LayoutTests:

  • accessibility/tabindex-removed-expected.txt: Added.
  • accessibility/tabindex-removed.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r249522 r249534  
     12019-09-05  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: children cache are not re-computed if tab index is removed
     4        https://bugs.webkit.org/show_bug.cgi?id=201502
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        * accessibility/tabindex-removed-expected.txt: Added.
     9        * accessibility/tabindex-removed.html: Added.
     10
    1112019-09-04  Fujii Hironori  <Hironori.Fujii@sony.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r249531 r249534  
     12019-09-05  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: children cache are not re-computed if tab index is removed
     4        https://bugs.webkit.org/show_bug.cgi?id=201502
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Test: accessibility/tabindex-removed.html
     9
     10        If the tabindex changes, it can potentially affect whether an element is accessible. If we don't update the children cache
     11        information can be stale and lead to incorrect navigation with VoiceOver.
     12
     13        * accessibility/AXObjectCache.cpp:
     14        (WebCore::AXObjectCache::handleAttributeChange):
     15
    1162019-09-05  Konstantin Tokarev  <annulen@yandex.ru>
    217
  • trunk/Source/WebCore/accessibility/AXObjectCache.cpp

    r248846 r249534  
    14971497    else if (attrName == forAttr && is<HTMLLabelElement>(*element))
    14981498        labelChanged(element);
     1499    else if (attrName == tabindexAttr)
     1500        childrenChanged(element->parentNode(), element);
    14991501
    15001502    if (!attrName.localName().string().startsWith("aria-"))
Note: See TracChangeset for help on using the changeset viewer.