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

Changeset 287388 in webkit


Ignore:
Timestamp:
Dec 23, 2021, 12:54:35 AM (5 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK][a11y] Test accessibility/svg-remote-element.html crashes with ATSPI
https://bugs.webkit.org/show_bug.cgi?id=234563

Reviewed by Adrian Perez de Castro.

This is because the remote svg element wrappers can't be created because the svg image page hasn't the root
object set.

  • accessibility/AccessibilityRenderObject.cpp:

(WebCore::AccessibilityRenderObject::remoteSVGRootElement const): Set the root image wrapper element on the svg
image page.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r287387 r287388  
     12021-12-23  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK][a11y] Test accessibility/svg-remote-element.html crashes with ATSPI
     4        https://bugs.webkit.org/show_bug.cgi?id=234563
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        This is because the remote svg element wrappers can't be created because the svg image page hasn't the root
     9        object set.
     10
     11        * accessibility/AccessibilityRenderObject.cpp:
     12        (WebCore::AccessibilityRenderObject::remoteSVGRootElement const): Set the root image wrapper element on the svg
     13        image page.
     14
    1152021-12-23  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp

    r287304 r287388  
    33983398    if (!is<AccessibilitySVGRoot>(rootSVGObject))
    33993399        return nullptr;
    3400    
     3400
     3401#if USE(ATSPI)
     3402    if (auto* page = document->page())
     3403        page->setAccessibilityRootObject(createIfNecessary == Create ? axObjectCache()->document().page()->accessibilityRootObject() : nullptr);
     3404#endif
     3405
    34013406    return downcast<AccessibilitySVGRoot>(rootSVGObject);
    34023407}
Note: See TracChangeset for help on using the changeset viewer.