<?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>285338</bug_id>
          
          <creation_ts>2025-01-03 04:25:46 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: !input-&gt;userAgentShadowRoot() when cloning a switch input</short_desc>
          <delta_ts>2025-01-06 04:42:17 -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>DOM</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="Tim Nguyen (:ntim)">ntim</reporter>
          <assigned_to name="Anne van Kesteren">annevk</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2084675</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2025-01-03 04:25:46 -0800</bug_when>
    <thetext>Noticed this on: https://bugs.webkit.org/attachment.cgi?id=473761

ASSERTION FAILED: !input-&gt;userAgentShadowRoot()
/Volumes/Data/Code/Safari/OpenSource/Source/WebCore/dom/Element.cpp(5518) : void WebCore::Element::cloneDataFromElement(const Element &amp;)
1   0x304c3aed8 WebCore::Element::cloneDataFromElement(WebCore::Element const&amp;)
2   0x304c3a7bc WebCore::Element::cloneElementWithoutChildren(WebCore::TreeScope&amp;)
3   0x304c3a620 WebCore::Element::cloneNodeInternal(WebCore::TreeScope&amp;, WebCore::Node::CloningOperation)
4   0x304a96594 WebCore::ContainerNode::cloneChildNodes(WebCore::TreeScope&amp;, WebCore::ContainerNode&amp;)
5   0x304c3aa00 WebCore::Element::cloneElementWithChildren(WebCore::TreeScope&amp;)
6   0x304c3a684 WebCore::Element::cloneNodeInternal(WebCore::TreeScope&amp;, WebCore::Node::CloningOperation)
7   0x304d63248 WebCore::Node::cloneNode(bool)
8   0x304d632e4 WebCore::Node::cloneNodeForBindings(bool)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084922</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-01-05 09:43:25 -0800</bug_when>
    <thetext>This means that the optimization in https://bugs.webkit.org/show_bug.cgi?id=269900 isn&apos;t working for this specific case. Do you have a test case which reproduces this assertion failure?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2085008</commentid>
    <comment_count>2</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2025-01-06 01:46:12 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/38555</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2085021</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-06 04:41:00 -0800</bug_when>
    <thetext>Committed 288458@main (1e3a17caec13): &lt;https://commits.webkit.org/288458@main&gt;

Reviewed commits have been landed. Closing PR #38555 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2085022</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-01-06 04:42:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/142412129&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>