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

Changeset 286052 in webkit


Ignore:
Timestamp:
Nov 19, 2021, 1:01:37 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r285859) [GTK][WPE] a number of accessibility/* tests crash on GTK and WPE
https://bugs.webkit.org/show_bug.cgi?id=233221

Patch by Arcady Goldmints-Orlov <Arcady Goldmints-Orlov> on 2021-11-19
Reviewed by Carlos Garcia Campos.

Tools:

Add null checks in the ATK code to ensure AccessibilityUIElement::create()
is not passed a NULL pointer.

  • WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:

(WTR::AccessibilityController::focusedElement):

  • WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:

(WTR::AccessibilityUIElement::getChildren):
(WTR::AccessibilityUIElement::getChildrenWithRange):

LayoutTests:

  • platform/glib/TestExpectations:
  • platform/glib/accessibility/add-children-pseudo-element-expected.txt:
  • platform/glib/accessibility/aria-modal-text-descendants-expected.txt: Added.
  • platform/glib/accessibility/table-cell-display-block-expected.txt: Added.
Location:
trunk
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r286049 r286052  
     12021-11-19  Arcady Goldmints-Orlov  <agoldmints@igalia.com>
     2
     3        REGRESSION(r285859) [GTK][WPE] a number of accessibility/* tests crash on GTK and WPE
     4        https://bugs.webkit.org/show_bug.cgi?id=233221
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * platform/glib/TestExpectations:
     9        * platform/glib/accessibility/add-children-pseudo-element-expected.txt:
     10        * platform/glib/accessibility/aria-modal-text-descendants-expected.txt: Added.
     11        * platform/glib/accessibility/table-cell-display-block-expected.txt: Added.
     12
    1132021-11-18  Frédéric Wang  <fwang@igalia.com>
    214
  • trunk/LayoutTests/platform/glib/TestExpectations

    r285855 r286052  
    20142014webkit.org/b/160248 fast/text/trailing-word-detection.html [ Failure ]
    20152015webkit.org/b/160249 fast/shrink-wrap/rect-shrink-wrap.html [ ImageOnlyFailure ]
    2016 webkit.org/b/161583 accessibility/auto-fill-types.html [ Failure ]
     2016webkit.org/b/161583 accessibility/auto-fill-types.html [ Timeout ]
    20172017webkit.org/b/161589 css3/masking/mask-repeat-space-padding.html [ ImageOnlyFailure ]
    20182018webkit.org/b/162815 fast/text/variations/font-face-clamp.html [ ImageOnlyFailure ]
  • trunk/LayoutTests/platform/glib/accessibility/add-children-pseudo-element-expected.txt

    r267644 r286052  
    1 Language Email
    21Make sure that we are updating the render block flow element's children correctly.
    32
     
    65
    76PASS element.childrenCount is 2
    8 PASS element.childrenCount is 1
     7PASS element.childrenCount === 1
    98PASS successfullyParsed is true
    109
  • trunk/Tools/ChangeLog

    r286050 r286052  
     12021-11-19  Arcady Goldmints-Orlov  <agoldmints@igalia.com>
     2
     3        REGRESSION(r285859) [GTK][WPE] a number of accessibility/* tests crash on GTK and WPE
     4        https://bugs.webkit.org/show_bug.cgi?id=233221
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Add null checks in the ATK code to ensure AccessibilityUIElement::create()
     9        is not passed a NULL pointer.
     10
     11        * WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:
     12        (WTR::AccessibilityController::focusedElement):
     13        * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
     14        (WTR::AccessibilityUIElement::getChildren):
     15        (WTR::AccessibilityUIElement::getChildrenWithRange):
     16
    1172021-11-19  Carlos Garcia Campos  <cgarcia@igalia.com>
    218
  • trunk/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp

    r285859 r286052  
    118118    void* root = WKAccessibilityFocusedObject(page);
    119119
     120    if (!ATK_IS_OBJECT(root))
     121        return nullptr;
     122
    120123    return AccessibilityUIElement::create(static_cast<AtkObject*>(root));
    121124}
  • trunk/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp

    r282643 r286052  
    746746    for (int i = 0; i < count; i++) {
    747747        GRefPtr<AtkObject> child = adoptGRef(atk_object_ref_accessible_child(ATK_OBJECT(m_element.get()), i));
     748
     749        if (!ATK_IS_OBJECT(child.get()))
     750            continue;
     751
    748752        children.append(AccessibilityUIElement::create(child.get()));
    749753    }
     
    757761    for (unsigned i = location; i < end; i++) {
    758762        GRefPtr<AtkObject> child = adoptGRef(atk_object_ref_accessible_child(ATK_OBJECT(m_element.get()), i));
     763
     764        if (!ATK_IS_OBJECT(child.get()))
     765            continue;
     766
    759767        children.append(AccessibilityUIElement::create(child.get()));
    760768    }
Note: See TracChangeset for help on using the changeset viewer.