⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 249694 in webkit


Ignore:
Timestamp:
Sep 9, 2019, 8:19:45 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r249534. rdar://problem/55183098

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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249534 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-608-branch
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608-branch/LayoutTests/ChangeLog

    r249550 r249694  
     12019-09-09  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r249534. rdar://problem/55183098
     4
     5    AX: children cache are not re-computed if tab index is removed
     6    https://bugs.webkit.org/show_bug.cgi?id=201502
     7   
     8    Reviewed by Zalan Bujtas.
     9   
     10    Source/WebCore:
     11   
     12    Test: accessibility/tabindex-removed.html
     13   
     14    If the tabindex changes, it can potentially affect whether an element is accessible. If we don't update the children cache
     15    information can be stale and lead to incorrect navigation with VoiceOver.
     16   
     17    * accessibility/AXObjectCache.cpp:
     18    (WebCore::AXObjectCache::handleAttributeChange):
     19   
     20    LayoutTests:
     21   
     22    * accessibility/tabindex-removed-expected.txt: Added.
     23    * accessibility/tabindex-removed.html: Added.
     24   
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2019-09-05  Chris Fleizach  <cfleizach@apple.com>
     29
     30            AX: children cache are not re-computed if tab index is removed
     31            https://bugs.webkit.org/show_bug.cgi?id=201502
     32
     33            Reviewed by Zalan Bujtas.
     34
     35            * accessibility/tabindex-removed-expected.txt: Added.
     36            * accessibility/tabindex-removed.html: Added.
     37
    1382019-09-05  Kocsen Chung  <kocsen_chung@apple.com>
    239
  • branches/safari-608-branch/Source/WebCore/ChangeLog

    r249692 r249694  
     12019-09-09  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r249534. rdar://problem/55183098
     4
     5    AX: children cache are not re-computed if tab index is removed
     6    https://bugs.webkit.org/show_bug.cgi?id=201502
     7   
     8    Reviewed by Zalan Bujtas.
     9   
     10    Source/WebCore:
     11   
     12    Test: accessibility/tabindex-removed.html
     13   
     14    If the tabindex changes, it can potentially affect whether an element is accessible. If we don't update the children cache
     15    information can be stale and lead to incorrect navigation with VoiceOver.
     16   
     17    * accessibility/AXObjectCache.cpp:
     18    (WebCore::AXObjectCache::handleAttributeChange):
     19   
     20    LayoutTests:
     21   
     22    * accessibility/tabindex-removed-expected.txt: Added.
     23    * accessibility/tabindex-removed.html: Added.
     24   
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2019-09-05  Chris Fleizach  <cfleizach@apple.com>
     29
     30            AX: children cache are not re-computed if tab index is removed
     31            https://bugs.webkit.org/show_bug.cgi?id=201502
     32
     33            Reviewed by Zalan Bujtas.
     34
     35            Test: accessibility/tabindex-removed.html
     36
     37            If the tabindex changes, it can potentially affect whether an element is accessible. If we don't update the children cache
     38            information can be stale and lead to incorrect navigation with VoiceOver.
     39
     40            * accessibility/AXObjectCache.cpp:
     41            (WebCore::AXObjectCache::handleAttributeChange):
     42
    1432019-09-09  Kocsen Chung  <kocsen_chung@apple.com>
    244
  • branches/safari-608-branch/Source/WebCore/accessibility/AXObjectCache.cpp

    r247367 r249694  
    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.