<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>246501</bug_id>
          
          <creation_ts>2022-10-13 20:24:08 -0700</creation_ts>
          <short_desc>[GTK][a11y] /WebKitGTK/TestWebKitAccessibility:/webkit/WebKitAccessibility/accessible/children-changed is failing</short_desc>
          <delta_ts>2023-12-01 08:01:24 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1905519</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2022-10-13 20:24:08 -0700</bug_when>
    <thetext>/WebKitGTK/TestWebKitAccessibility /webkit/WebKitAccessibility/accessible/children-changed

This exact failure is not always happening due to the SDK issue from bug246471, so I had to completely ignore fatal warnings to get to these.

EWS history shows this has been failing in a while (couldn&apos;t pick up where yet).

Notes from investigation:

  * The test creates a `div` with two `p` - `foo` and `bar` - which are the accessible objects. Working fine.
  * Then the test creates a new `p`, called `baz`, working fine.
  * Then the test removes `foo`, working fine.
  * Then the test changes the role - through JS - of `bar` and checks whether the existing object had its role changed without detach+attach
    * This test fails, with the existing object still having the role `paragraph`
    * If I get the children at the same position again, it already has the right `button` role
  * Also, in line: https://github.com/webkit/webkit/blob/main/Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp#L388
    * if we replace the `test-&gt;stopEventTimer(0, 0.5_s)` with an actual timer, two events are fired:
    * `object:children-changed:remove` with `detail1 == 1`
    * `object:children-changed:add` with `detail1 == 0`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905520</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-13 20:24:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/101156751&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996187</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2023-12-01 04:27:06 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21155</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996220</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-12-01 08:01:20 -0800</bug_when>
    <thetext>Committed 271382@main (e32c6f904bc6): &lt;https://commits.webkit.org/271382@main&gt;

Reviewed commits have been landed. Closing PR #21155 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>