<?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>263217</bug_id>
          
          <creation_ts>2023-10-16 14:04:45 -0700</creation_ts>
          <short_desc>REGRESSION(269369@main) ASSERTION FAILED: !m_inRemovedLastRefFunction in WebCore::Node::ref</short_desc>
          <delta_ts>2023-10-16 14:28:14 -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>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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1985416</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-16 14:04:45 -0700</bug_when>
    <thetext>I&apos;m running layout test with Windows port Debug build 269374@main.

Regressions: Unexpected crashes (2)
  fast/css/content/quote-crash-when-floating.html [ Crash ]
  fast/forms/form-submission-crash-successful-submit-button.html [ Crash ]

ASSERTION FAILED: !m_inRemovedLastRefFunction
C:\home\webkit\gc\Source\WebCore\dom/Node.h(803) : ref
1   00007FF92FAD1C19 WTFCrash
2   00007FF8F24A5EED WTFCrashWithInfo
3   00007FF8F2748F0B WebCore::Node::ref
4   00007FF8F4146F5A WTF::Ref&lt;WebCore::Document,WTF::RawPtrTraits&lt;WebCore::Document&gt; &gt;::Ref
5   00007FF8F4E28DAC WebCore::ContainerNode::removeNodeWithScriptAssertion
6   00007FF8F4E1E99C WebCore::ContainerNode::removeChild
7   00007FF8F54AF3EE WebCore::ValidationMessage::deleteBubbleTree
8   00007FF8F54AF1C6 WebCore::ValidationMessage::~ValidationMessage
9   00007FF8F54B8DFC std::default_delete&lt;WebCore::ValidationMessage&gt;::operator()
10  00007FF8F54B8E89 std::unique_ptr&lt;WebCore::ValidationMessage,std::default_delete&lt;WebCore::ValidationMessage&gt; &gt;::reset
11  00007FF8F54B47D1 std::unique_ptr&lt;WebCore::ValidationMessage,std::default_delete&lt;WebCore::ValidationMessage&gt; &gt;::operator=
12  00007FF8F54AE919 WebCore::ValidatedFormListedElement::removedFromAncestor
13  00007FF8F5365F1A WebCore::HTMLFormControlElement::removedFromAncestor
14  00007FF8F539AF85 WebCore::HTMLInputElement::removedFromAncestor
15  00007FF8F4E24B7F WebCore::notifyNodeRemovedFromDocument
16  00007FF8F4E24C65 WebCore::notifyNodeRemovedFromDocument
17  00007FF8F4E24C65 WebCore::notifyNodeRemovedFromDocument
18  00007FF8F4E24A05 WebCore::notifyChildNodeRemoved
19  00007FF8F4E1EDD1 WebCore::removeDetachedChildrenInContainer
20  00007FF8F4E1EBE7 WebCore::ContainerNode::removeDetachedChildren
21  00007FF8F4E7DB18 WebCore::Document::removedLastRef
22  00007FF8F5017208 WebCore::Node::removedLastRef
23  00007FF8F274936E WebCore::Node::deref
24  00007FF8F2CAC21B WTF::Ref&lt;WebCore::Document,WTF::RawPtrTraits&lt;WebCore::Document&gt; &gt;::~Ref
25  00007FF8F4E9A156 WebCore::Document::queueTaskToDispatchEvent::&lt;lambda_7&gt;::~`lambda at C:\home\webkit\gc\Source\WebCore\dom\Document.cpp:5508:35&apos;
26  00007FF8F4EB4246 WTF::Detail::CallableWrapper&lt;`lambda at C:\home\webkit\gc\Source\WebCore\dom\Document.cpp:5508:35&apos;,void&gt;::~CallableWrapper
27  00007FF8F4EB41D9 WTF::Detail::CallableWrapper&lt;`lambda at C:\home\webkit\gc\Source\WebCore\dom\Document.cpp:5508:35&apos;,void&gt;::~CallableWrapper
28  00007FF8F2665761 std::default_delete&lt;WTF::Detail::CallableWrapperBase&lt;void&gt; &gt;::operator()
29  00007FF8F2665717 std::unique_ptr&lt;WTF::Detail::CallableWrapperBase&lt;void&gt;,std::default_delete&lt;WTF::Detail::CallableWrapperBase&lt;void&gt; &gt; &gt;::~unique_ptr
30  00007FF8F26656D3 WTF::Function&lt;void ()&gt;::~Function
31  00007FF8F4FAA266 WebCore::EventLoopFunctionDispatchTask::~EventLoopFunctionDispatchTask</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985418</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-10-16 14:06:50 -0700</bug_when>
    <thetext>Yes, this is a pain. I really wish we had https://github.com/WebKit/WebKit/pull/8748...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985419</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-16 14:08:12 -0700</bug_when>
    <thetext>fast/css/content/quote-crash-when-floating.html isn&apos;t crashing sololy.
&gt; python .\Tools\Scripts\run-webkit-tests --debug fast/css/content/quote-crash-when-floating.html --iterations=5 -v

The preceding test fast/css/content/display-contents-on-focus-crash.html is making the following test crash.

&gt; python .\Tools\Scripts\run-webkit-tests --debug fast/css/content/display-contents-on-focus-crash.html --iterations=5 -v

[1/5] fast/css/content/display-contents-on-focus-crash.html passed
[2/5] fast/css/content/display-contents-on-focus-crash.html failed unexpectedly (WebProcess crashed [pid=876])
[3/5] fast/css/content/display-contents-on-focus-crash.html passed
[4/5] fast/css/content/display-contents-on-focus-crash.html failed unexpectedly (WebKitTestRunner crashed [pid=34556])
[5/5] fast/css/content/display-contents-on-focus-crash.html passed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985421</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-10-16 14:08:46 -0700</bug_when>
    <thetext>Will do a partial revert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985422</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-10-16 14:13:15 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/19131</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985426</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-16 14:27:07 -0700</bug_when>
    <thetext>Committed 269383@main (4878f0893799): &lt;https://commits.webkit.org/269383@main&gt;

Reviewed commits have been landed. Closing PR #19131 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985427</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-16 14:28:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/117037687&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>