<?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>254591</bug_id>
          
          <creation_ts>2023-03-28 08:44:29 -0700</creation_ts>
          <short_desc>AX: VoiceOver reads out the VO highlighted item when interacting with radios buttons using a mouse</short_desc>
          <delta_ts>2023-03-28 08:46:24 -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 16</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 13</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="beeps">beeps.grey</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andresg_22</cc>
    
    <cc>beeps.grey</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1944629</commentid>
    <comment_count>0</comment_count>
    <who name="beeps">beeps.grey</who>
    <bug_when>2023-03-28 08:44:29 -0700</bug_when>
    <thetext>Tested in Safari 16.3 on macOS 13.2.1.

1. Open the attached file in Safari.
2. Activate VoiceOver.
3. Using the keyboard, navigate to and check the first radio button in the group (&quot;Huey&quot;). VO&apos;s focus ring should surround the &quot;Huey&quot; radio button. VO should announce &quot;Huey, selected, radio button, 1 of 3.&quot;
4. Using the mouse, click on the second radio button (&quot;Dewey&quot;) or its label.

Expected: 
- &quot;Dewey&quot; should become checked. 
- VO&apos;s outline should move to &quot;Dewey&quot;.
- VO should announce &quot;Dewey, selected, radio button, 2 of 3.&quot; 

Actual: 
- &quot;Dewey&quot; becomes checked.
- VO&apos;s outline stays on &quot;Huey&quot;.
- VO announces &quot;Huey, radio button, 1 of 3.&quot;

5. Use VoiceOver&apos;s Ctrl + Opt + Space keyboard command to check the current radio button.

Expected:
- &quot;Dewey&quot; should remain checked.
- VO&apos;s outline should stay on &quot;Dewey&quot;.
- VO should announce &quot;Dewey, selected, radio button, 2 of 3.&quot; 

Actual: 
- &quot;Huey&quot; becomes checked.
- VO&apos;s outline stays on &quot;Huey&quot;.
- VO announces &quot;Huey, selected, radio button, 1 of 3.&quot;



It appears as though clicking on other radio buttons in a group will check those buttons, but VoiceOver does not recognise this has happened or is intent on not moving its &apos;focus&apos; to the clicked item. This is unexpected, as clicking on a text node or form element when VoiceOver is active will usually move VO&apos;s &apos;focus&apos; to that item. 

The same situation occurs when interacting with the radio buttons in any order (e.g. checking &quot;Louie&quot; and subsequently clicking on either &quot;Huey&quot; or &quot;Dewey&quot; results in VO still reading out &quot;Louie&quot;).

I&apos;ve managed to reproduce this on radio buttons across a variety of websites. It does not seem to be constrained to any particular implementation. 

I encountered a similar issue with checkboxes. If a checkbox is currently &apos;focused&apos; by VO, interactions with other checkboxes will not move that focus and VO will not announce that the clicked checkbox has been checked. However, unlike radio buttons, VO doesn&apos;t announce anything at all (it doesn&apos;t repeat the checked option, as it does with radio buttons).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944630</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-03-28 08:44:40 -0700</bug_when>
    <thetext>&lt;rdar://problem/107318649&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944631</commentid>
    <comment_count>2</comment_count>
      <attachid>465633</attachid>
    <who name="beeps">beeps.grey</who>
    <bug_when>2023-03-28 08:46:24 -0700</bug_when>
    <thetext>Created attachment 465633
Reduced radio button example</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>465633</attachid>
            <date>2023-03-28 08:46:24 -0700</date>
            <delta_ts>2023-03-28 08:46:24 -0700</delta_ts>
            <desc>Reduced radio button example</desc>
            <filename>radio-buttons.html</filename>
            <type>text/html</type>
            <size>445</size>
            <attacher name="beeps">beeps.grey</attacher>
            
              <data encoding="base64">PGZpZWxkc2V0PgogICAgPGxlZ2VuZD5TZWxlY3QgYSBtYWludGVuYW5jZSBkcm9uZTo8L2xlZ2Vu
ZD4KCiAgICA8ZGl2PgogICAgICA8aW5wdXQgdHlwZT0icmFkaW8iIGlkPSJodWV5IiBuYW1lPSJk
cm9uZSIgdmFsdWU9Imh1ZXkiPgogICAgICA8bGFiZWwgZm9yPSJodWV5Ij5IdWV5PC9sYWJlbD4K
ICAgIDwvZGl2PgoKICAgIDxkaXY+CiAgICAgIDxpbnB1dCB0eXBlPSJyYWRpbyIgaWQ9ImRld2V5
IiBuYW1lPSJkcm9uZSIgdmFsdWU9ImRld2V5Ij4KICAgICAgPGxhYmVsIGZvcj0iZGV3ZXkiPkRl
d2V5PC9sYWJlbD4KICAgIDwvZGl2PgoKICAgIDxkaXY+CiAgICAgIDxpbnB1dCB0eXBlPSJyYWRp
byIgaWQ9ImxvdWllIiBuYW1lPSJkcm9uZSIgdmFsdWU9ImxvdWllIj4KICAgICAgPGxhYmVsIGZv
cj0ibG91aWUiPkxvdWllPC9sYWJlbD4KICAgIDwvZGl2Pgo8L2ZpZWxkc2V0Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>