Changeset 243864 in webkit


Ignore:
Timestamp:
Apr 3, 2019 10:53:30 PM (5 years ago)
Author:
Carlos Garcia Campos
Message:

[ATK] Wrong index passed to AtkObject::children-changed::add signal in AXObjectCache::attachWrapper()
https://bugs.webkit.org/show_bug.cgi?id=196538

Reviewed by Michael Catanzaro.

In most of the cases the parent is not found, probably because the child is not a direct descendant of the
parent returned by parentObjectUnignored(). We need to handle the case of find() returning notFound.

  • accessibility/atk/AXObjectCacheAtk.cpp:

(WebCore::AXObjectCache::attachWrapper): Use -1 as the index when find() returns notFound.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r243859 r243864  
     12019-04-03  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [ATK] Wrong index passed to AtkObject::children-changed::add signal in AXObjectCache::attachWrapper()
     4        https://bugs.webkit.org/show_bug.cgi?id=196538
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        In most of the cases the parent is not found, probably because the child is not a direct descendant of the
     9        parent returned by parentObjectUnignored(). We need to handle the case of find() returning notFound.
     10
     11        * accessibility/atk/AXObjectCacheAtk.cpp:
     12        (WebCore::AXObjectCache::attachWrapper): Use -1 as the index when find() returns notFound.
     13
    1142019-04-03  Timothy Hatcher  <timothy@apple.com>
    215
  • trunk/Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp

    r239535 r243864  
    100100
    101101    size_t index = coreParent->children(false).find(obj);
    102     g_signal_emit_by_name(atkParent, "children-changed::add", index, atkObj);
     102    g_signal_emit_by_name(atkParent, "children-changed::add", index != notFound ? index : -1, atkObj);
    103103}
    104104
Note: See TracChangeset for help on using the changeset viewer.