<?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>218290</bug_id>
          
          <creation_ts>2020-10-28 09:53:06 -0700</creation_ts>
          <short_desc>Using ShadowRoot.delegatesFocus causes page to refresh</short_desc>
          <delta_ts>2020-10-28 11:29:01 -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>DOM</component>
          <version>Safari 14</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>215622</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 name="Caleb Williams">caleb.d.williams</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>smoley</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1702349</commentid>
    <comment_count>0</comment_count>
    <who name="Caleb Williams">caleb.d.williams</who>
    <bug_when>2020-10-28 09:53:06 -0700</bug_when>
    <thetext>Attaching a shadow root with `delegatesFocus: true` will break a page of a click occurs inside the shadow DOM. A simple reproduction can be found a https://codepen.io/pen/MWeQaME</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702360</commentid>
    <comment_count>1</comment_count>
    <who name="Caleb Williams">caleb.d.williams</who>
    <bug_when>2020-10-28 10:15:02 -0700</bug_when>
    <thetext>Update: This seems to happen only when there is no to focusable child in the shadow root (including buttons due to how WebKit handles button focus). With something like an input in the shadow root, things work just fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702394</commentid>
    <comment_count>2</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2020-10-28 11:07:43 -0700</bug_when>
    <thetext>Thanks for filing, I can reproduce this on Safari 14.0 but I haven&apos;t been able to reproduce it on Safari 14.0.1 or 14.1. Are you able to reproduce this on later builds?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702395</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-28 11:07:57 -0700</bug_when>
    <thetext>&lt;rdar://problem/70771527&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702403</commentid>
    <comment_count>4</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2020-10-28 11:28:07 -0700</bug_when>
    <thetext>Apple internal see rdar://66832677.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702406</commentid>
    <comment_count>5</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2020-10-28 11:29:01 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>