<?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>300682</bug_id>
          
          <creation_ts>2025-10-14 01:09:00 -0700</creation_ts>
          <short_desc>Crash in WebCore::addInvalidElementToAncestorFromInsertionPoint</short_desc>
          <delta_ts>2025-10-14 05:13:08 -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>
          
          
          <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>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2150775</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-10-14 01:09:00 -0700</bug_when>
    <thetext>e.g.

0   WebCore                       	       0x1a8faf194 WTF::RawPtrTraits&lt;WTF::StringImpl&gt;::unwrap(WTF::StringImpl* const&amp;) + 0 [inlined]
1   WebCore                       	       0x1a8faf194 WTF::RefPtr&lt;WTF::StringImpl, WTF::RawPtrTraits&lt;WTF::StringImpl&gt;, WTF::DefaultRefDerefTraits&lt;WTF::StringImpl&gt;&gt;::get() const + 0 [inlined]
2   WebCore                       	       0x1a8faf194 WTF::String::impl() const + 0 [inlined]
3   WebCore                       	       0x1a8faf194 WTF::AtomString::impl() const + 0 [inlined]
4   WebCore                       	       0x1a8faf194 WTF::operator==(WTF::AtomString const&amp;, WTF::AtomString const&amp;) + 0 [inlined]
5   WebCore                       	       0x1a8faf194 WebCore::Element::hasLocalName(WTF::AtomString const&amp;) const + 4 [inlined]
6   WebCore                       	       0x1a8faf194 WebCore::HTMLElement::hasTagName(WebCore::HTMLQualifiedName const&amp;) const + 4 [inlined]
7   WebCore                       	       0x1a8faf194 WebCore::Node::hasTagName(WebCore::HTMLQualifiedName const&amp;) const + 8 [inlined]
8   WebCore                       	       0x1a8faf194 WTF::TypeCastTraits&lt;WebCore::HTMLFieldSetElement const, WebCore::Element const, false&gt;::checkTagName(WebCore::Node const&amp;) + 8 [inlined]
9   WebCore                       	       0x1a8faf194 WTF::TypeCastTraits&lt;WebCore::HTMLFieldSetElement const, WebCore::Element const, false&gt;::isOfType(WebCore::Element const&amp;) + 8 [inlined]
10  WebCore                       	       0x1a8faf194 bool WTF::is&lt;WebCore::HTMLFieldSetElement, WebCore::Element&gt;(WebCore::Element const&amp;) + 8 [inlined]
11  WebCore                       	       0x1a8faf194 std::__1::conditional&lt;std::is_const_v&lt;WebCore::Element&gt;, std::__1::add_const&lt;WebCore::HTMLFieldSetElement&gt;::type, __remove_const(WebCore::HTMLFieldSetElement)&gt;::type* WTF::dynamicDowncast&lt;WebCore::HTMLFieldSetElement, WebCore::Element&gt;(WebCore::Element&amp;) + 8 [inlined]
12  WebCore                       	       0x1a8faf194 WebCore::HTMLFieldSetElement* WebCore::findElementAncestorOfType&lt;WebCore::HTMLFieldSetElement&gt;(WebCore::Node const&amp;) + 28 [inlined]
13  WebCore                       	       0x1a8faf194 WebCore::ElementAncestorRange&lt;WebCore::HTMLFieldSetElement&gt; WebCore::ancestorsOfType&lt;WebCore::HTMLFieldSetElement&gt;(WebCore::Node&amp;) + 28 [inlined]
14  WebCore                       	       0x1a8faf194 WebCore::ElementAncestorRange&lt;WebCore::HTMLFieldSetElement&gt; WebCore::lineageOfType&lt;WebCore::HTMLFieldSetElement&gt;(WebCore::Element&amp;) + 56 [inlined]
15  WebCore                       	       0x1a8faf194 WebCore::addInvalidElementToAncestorFromInsertionPoint(WebCore::HTMLElement const&amp;, WebCore::ContainerNode*) + 96
16  WebCore                       	       0x1a8faefb0 WebCore::ValidatedFormListedElement::updateValidity() + 616
17  WebCore                       	       0x1a8c57eb4 WebCore::RadioButtonGroup::updateValidityForAllButtons() + 244
18  WebCore                       	       0x1a8c582a0 WebCore::RadioButtonGroup::remove(WebCore::HTMLInputElement&amp;) + 852
19  WebCore                       	       0x1a8c58e60 WebCore::RadioButtonGroups::removeButton(WebCore::HTMLInputElement&amp;) + 128
20  WebCore                       	       0x1a8e8f880 WebCore::HTMLInputElement::removeFromRadioButtonGroup() + 4 [inlined]
21  WebCore                       	       0x1a8e8f880 WebCore::HTMLInputElement::willChangeForm() + 4 [inlined]
22  WebCore                       	       0x1a8e8f880 non-virtual thunk to WebCore::HTMLInputElement::willChangeForm() + 264
23  WebCore                       	       0x1a8e2f3e0 WebCore::FormListedElement::formWillBeDestroyed() + 92
24  WebCore                       	       0x1a8fb0d64 WebCore::ValidatedFormListedElement::formWillBeDestroyed() + 36
25  WebCore                       	       0x1a8e6f454 WebCore::HTMLFormElement::~HTMLFormElement() + 264
26  WebCore                       	       0x1a8e6fae4 WebCore::HTMLFormElement::~HTMLFormElement() + 4 [inlined]

&lt;rdar://51548228&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150776</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-10-14 01:22:42 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/52285</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2150819</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-10-14 05:13:06 -0700</bug_when>
    <thetext>Committed 301470@main (985b9fb1a2eb): &lt;https://commits.webkit.org/301470@main&gt;

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

    </bug>

</bugzilla>