<?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>266717</bug_id>
          
          <creation_ts>2023-12-20 11:13:39 -0800</creation_ts>
          <short_desc>AX: Default contents of child slot are not used for accessible name</short_desc>
          <delta_ts>2023-12-29 12:19:22 -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>Safari 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>266916</dup_id>
          <see_also>https://github.com/home-assistant/frontend/issues/18759</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Repsher">steverep+webkit</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>2001112</commentid>
    <comment_count>0</comment_count>
      <attachid>469147</attachid>
    <who name="Steve Repsher">steverep+webkit</who>
    <bug_when>2023-12-20 11:13:39 -0800</bug_when>
    <thetext>Created attachment 469147
Minimal repro with and without slotted name

VoiceOver does not read the contents of a label provided as the default contents of a child slot when the ARIA role is outside the shadow root.  See the attached minimal reproduction.  Note that if the `div` is removed from the shadow DOM, then the default label will be consumed as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001114</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-20 11:13:55 -0800</bug_when>
    <thetext>&lt;rdar://problem/119944830&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002244</commentid>
    <comment_count>2</comment_count>
    <who name="Tyler Wilcock">tyler_w</who>
    <bug_when>2023-12-29 12:18:58 -0800</bug_when>
    <thetext>This is fixed by:

https://bugs.webkit.org/show_bug.cgi?id=266916

Thanks for taking the time to file these bugs and create minimal reproductions, each was helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002245</commentid>
    <comment_count>3</comment_count>
    <who name="Tyler Wilcock">tyler_w</who>
    <bug_when>2023-12-29 12:19:22 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 266916 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>469147</attachid>
            <date>2023-12-20 11:13:39 -0800</date>
            <delta_ts>2023-12-20 11:13:39 -0800</delta_ts>
            <desc>Minimal repro with and without slotted name</desc>
            <filename>voiceover-slot-default-repro.html</filename>
            <type>text/html</type>
            <size>628</size>
            <attacher name="Steve Repsher">steverep+webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KICA8aGVhZD4KICAgIDx0aXRsZT5Ib21l
PC90aXRsZT4KICAgIDxtZXRhIGNoYXJzZXQ9IlVURi04IiAvPgogICAgPG1ldGEgbmFtZT0idmll
d3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIiAvPgog
IDwvaGVhZD4KICA8Ym9keT4KICAgIDxidXR0b24+PGNoaWxkLXNsb3Q+c2xvdHRlZCBsYWJlbDwv
Y2hpbGQtc2xvdD48L2J1dHRvbj4KICAgIDxidXR0b24+PGNoaWxkLXNsb3Q+PC9jaGlsZC1zbG90
PjwvYnV0dG9uPgogICAgPHNjcmlwdD4KICAgICAgY2xhc3MgQ2hpbGRTbG90IGV4dGVuZHMgSFRN
TEVsZW1lbnQgewogICAgICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgICAgc3VwZXIoKTsKICAg
ICAgICAgIGNvbnN0IHJvb3QgPSB0aGlzLmF0dGFjaFNoYWRvdyh7IG1vZGU6ICJvcGVuIiB9KTsK
ICAgICAgICAgIHJvb3QuaW5uZXJIVE1MID0gYDxkaXY+PHNsb3Q+ZGVmYXVsdCBsYWJlbDwvc2xv
dD48L2Rpdj5gOwogICAgICAgIH0KICAgICAgfQogICAgICBjdXN0b21FbGVtZW50cy5kZWZpbmUo
ImNoaWxkLXNsb3QiLCBDaGlsZFNsb3QpOwogICAgPC9zY3JpcHQ+CiAgPC9ib2R5Pgo8L2h0bWw+
Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>