<?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>311243</bug_id>
          
          <creation_ts>2026-03-31 23:00:17 -0700</creation_ts>
          <short_desc>REGRESSION(309388@main): Crash in core DOM code due to malformed DOM tree</short_desc>
          <delta_ts>2026-04-09 04:09:57 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=311810</see_also>
          <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="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2195794</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2026-03-31 23:00:17 -0700</bug_when>
    <thetext>#0 0x0003007a8040 in WTFCrashWithInfo(int, char const*, char const*)+0x60 (WebCore:arm64e+0x7a8040)
#1 0x00030925b798 in WebCore::TreeScopeOrderedMap::remove(WTF::AtomString const&amp;, WebCore::Element&amp;)+0x8d8 (WebCore:arm64e+0x925b798)
#2 0x00030923d798 in WebCore::TreeScope::removeElementById(WTF::AtomString const&amp;, WebCore::Element&amp;, bool)+0x5c (WebCore:arm64e+0x923d798)
#3 0x000308e6ccc8 in WebCore::Element::removingSteps(WebCore::Node::RemovalType, WebCore::ContainerNode&amp;)+0xd2c (WebCore:arm64e+0x8e6ccc8)
#4 0x000308b5f56c in WebCore::notifyNodeRemovedFromDocument(WebCore::ContainerNode&amp;, WebCore::TreeScopeChange, WebCore::Node&amp;)+0x104 (WebCore:arm64e+0x8b5f56c)
#5 0x000308b2d1ac in WebCore::ContainerNode::removeChild(WebCore::Node&amp;)+0xcc4 (WebCore:arm64e+0x8b2d1ac)
#6 0x000308b2af04 in WebCore::ContainerNode::removeSelfOrChildNodesForInsertion(WebCore::Node&amp;, WTF::Vector&lt;WTF::Ref&lt;WebCore::Node, WTF::RawPtrTraits&lt;WebCore::Node&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Node&gt;&gt;, 11ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;)+0x13d8 (WebCore:arm64e+0x8b2af04)
#7 0x000308b32b88 in WebCore::ContainerNode::appendChildWithoutPreInsertionValidityCheck(WebCore::Node&amp;)+0x19c (WebCore:arm64e+0x8b32b88)
#8 0x000308b41890 in WebCore::ContainerNode::appendChild(WebCore::Node&amp;)+0x168 (WebCore:arm64e+0x8b41890)
#9 0x0003090736f0 in WebCore::Node::appendChild(WebCore::Node&amp;)+0x120 (WebCore:arm64e+0x90736f0)
#10 0x000303892b4c in WebCore::jsNodePrototypeFunction_appendChild(JSC::JSGlobalObject*, JSC::CallFrame*)+0x588 (WebCore:arm64e+0x3892b4c)

&lt;rdar://173397633&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2195799</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2026-03-31 23:36:32 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/61811</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197358</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-06 13:37:54 -0700</bug_when>
    <thetext>Committed 310666@main (18f7c49e6bdb): &lt;https://commits.webkit.org/310666@main&gt;

Reviewed commits have been landed. Closing PR #61811 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>