<?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>305343</bug_id>
          
          <creation_ts>2026-01-12 14:30:28 -0800</creation_ts>
          <short_desc>AX: VoiceOver sometimes does not announce newly revealed, programmatically focused button</short_desc>
          <delta_ts>2026-05-21 13:30:48 -0700</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>Safari 26</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 26</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>314893</dup_id>
          
          <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>jesse.greenberg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>tyler_w</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2171269</commentid>
    <comment_count>0</comment_count>
    <who name="">jesse.greenberg</who>
    <bug_when>2026-01-12 14:30:28 -0800</bug_when>
    <thetext>Summary:
When a hidden button is made visible and immediately focused via script, VoiceOver in Safari often does not announce the newly focused button’s accessible name.

Steps to Reproduce:
1. Turn on VoiceOver.
2. Open this minimal page in Safari:

```html
   &lt;!doctype html&gt;
   &lt;html lang=&quot;en&quot;&gt;
   &lt;body&gt;
     &lt;div&gt;
       &lt;button id=&quot;a&quot;&gt;Button A&lt;/button&gt;
       &lt;button id=&quot;b&quot; hidden&gt;Button B&lt;/button&gt;
       &lt;button id=&quot;c&quot; hidden&gt;Button C&lt;/button&gt;
     &lt;/div&gt;

     &lt;script&gt;
       const buttonA = document.getElementById(&apos;a&apos;);
       const buttonB = document.getElementById(&apos;b&apos;);
       const buttonC = document.getElementById(&apos;c&apos;);

       buttonA.addEventListener(&apos;click&apos;, () =&gt; {
         buttonB.hidden = false;
         buttonB.focus();
       });

       buttonB.addEventListener(&apos;click&apos;, () =&gt; {
         buttonC.hidden = false;
         buttonC.focus();
       });
     &lt;/script&gt;
   &lt;/body&gt;
   &lt;/html&gt;
```

3. Move VoiceOver focus to &quot;Button A&quot;.
4. Activate &quot;Button A&quot; (Space or VO+Space).
5. Then activate &quot;Button B&quot;.

Expected Results:
Each time a button is revealed and focused, VoiceOver announces the newly focused button’s name (&quot;Button B&quot;, then &quot;Button C&quot;) consistently.

Actual Results:
Often, after activating &quot;Button A&quot; or &quot;Button B&quot;, VoiceOver moves focus but does not speak the newly focused button’s name.

Notes:
- This appears timing-related: adding a small delay before calling focus (for example, setTimeout(() =&gt; buttonB.focus(), 50)) makes the announcement more reliable.
- Reproducible intermittently but frequently.
- Tested on: macOS 26.2, Safari 26.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2171270</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-01-12 14:30:38 -0800</bug_when>
    <thetext>&lt;rdar://problem/168018445&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213068</commentid>
    <comment_count>2</comment_count>
    <who name="Tyler Wilcock">tyler_w</who>
    <bug_when>2026-05-21 13:30:39 -0700</bug_when>
    <thetext>Thanks for the bug report! Based on my testing, this was fixed with https://bugs.webkit.org/show_bug.cgi?id=314893, but please let me know if you find otherwise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213069</commentid>
    <comment_count>3</comment_count>
    <who name="Tyler Wilcock">tyler_w</who>
    <bug_when>2026-05-21 13:30:48 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 314893 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>