<?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>275103</bug_id>
          
          <creation_ts>2024-06-04 04:25:44 -0700</creation_ts>
          <short_desc>REGRESSION(279667@main): ASSERTION FAILED: posChildNeedsLayout() || selfNeedsLayout() || !parent() in WebCore::RenderElement::setOutOfFlowChildNeedsStaticPositionLayout()</short_desc>
          <delta_ts>2025-02-05 16:51:24 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=287113</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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2039618</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-06-04 04:25:44 -0700</bug_when>
    <thetext>After 279667@main (bug#274981),

1. Start Windows Debug MiniBrowser
2. Go to https://www.calc-age.com/calc_age
3. An assertion fail

ASSERTION FAILED: posChildNeedsLayout() || selfNeedsLayout() || !parent()
C:\webkit\wc\Source\WebCore\rendering/RenderElement.cpp(1214) : void WebCore::RenderElement::setOutOfFlowChildNeedsStaticPositionLayout()
1   00007FFB14D51CA9 WTFCrash
2   00007FFAE6422EFD WTFCrashWithInfo
3   00007FFAEA97547C WebCore::RenderElement::setOutOfFlowChildNeedsStaticPositionLayout
4   00007FFAEAD0388E WebCore::RenderTreeBuilder::attachToRenderElementInternal
5   00007FFAEAD01911 WebCore::RenderTreeBuilder::attachToRenderElement
6   00007FFAEAD01DCD WebCore::RenderTreeBuilder::Block::attachIgnoringContinuation
7   00007FFAEAD016F5 WebCore::RenderTreeBuilder::Block::attach
8   00007FFAEAD01507 WebCore::RenderTreeBuilder::BlockFlow::attach
9   00007FFAEAD0068E WebCore::RenderTreeBuilder::attachInternal
10  00007FFAEACFFF97 WebCore::RenderTreeBuilder::attach
11  00007FFAEAD26A91 WebCore::RenderTreeUpdater::createRenderer
12  00007FFAEAD24444 WebCore::RenderTreeUpdater::updateElementRenderer
13  00007FFAEAD237F4 WebCore::RenderTreeUpdater::updateRenderTree
14  00007FFAEAD23057 WebCore::RenderTreeUpdater::commit
15  00007FFAE927AA41 WebCore::Document::updateRenderTree
16  00007FFAE927B1ED WebCore::Document::resolveStyle
17  00007FFAE927BA31 WebCore::Document::updateStyleIfNeeded
18  00007FFAE927746C WebCore::Document::updateLayout
19  00007FFAE9278683 WebCore::Document::updateLayoutIgnorePendingStylesheets
20  00007FFAE9368968 WebCore::Element::boundingClientRect
21  00007FFAE9368AA9 WebCore::Element::getBoundingClientRect
22  00007FFAE6FCFFAE WebCore::jsElementPrototypeFunction_getBoundingClientRectBody
23  00007FFAE6FCFEC0 WebCore::IDLOperation&lt;WebCore::JSElement&gt;::call&lt;&amp;WebCore::jsElementPrototypeFunction_getBoundingClientRectBody,0&gt;
24  00007FFAE6FC1254 WebCore::jsElementPrototypeFunction_getBoundingClientRect
25  00007FFB00EE815F llint_entry
26  000000DEA7AFDDF0 (null)
Exception thrown at 0x00007FFB14D51CAE (WTF.dll) in WebKitWebProcess.exe: 0xC0000005: Access violation writing location 0x00000000BBADBEEF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039685</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-06-04 10:32:46 -0700</bug_when>
    <thetext>Somewhat surprisingly, I cannot reproduce this with MiniBrowser on macOS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039692</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2024-06-04 10:48:55 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #1)
&gt; Somewhat surprisingly, I cannot reproduce this with MiniBrowser on macOS.
I can&apos;t reproduce it either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039758</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-06-04 15:13:15 -0700</bug_when>
    <thetext>I got another crash just by loading https://mainichi.jp/articles/20240603/k00/00m/040/221000c today with Windows port Debug 279717@main.

ASSERTION FAILED: posChildNeedsLayout() || selfNeedsLayout() || !parent()
C:\webkit\wb\Source\WebCore\rendering/RenderElement.cpp(1214) : void WebCore::RenderElement::setOutOfFlowChildNeedsStaticPositionLayout()
1   00007FFB18F11CA9 WTFCrash
2   00007FFAE6422EFD WTFCrashWithInfo
3   00007FFAEA97468C WebCore::RenderElement::setOutOfFlowChildNeedsStaticPositionLayout
4   00007FFAEAD02A9E WebCore::RenderTreeBuilder::attachToRenderElementInternal
5   00007FFAEAD00B21 WebCore::RenderTreeBuilder::attachToRenderElement
6   00007FFAEAD010B0 WebCore::RenderTreeBuilder::Block::attachIgnoringContinuation
7   00007FFAEAD00905 WebCore::RenderTreeBuilder::Block::attach
8   00007FFAEAD00717 WebCore::RenderTreeBuilder::BlockFlow::attach
9   00007FFAEACFF89E WebCore::RenderTreeBuilder::attachInternal
10  00007FFAEACFF1A7 WebCore::RenderTreeBuilder::attach
11  00007FFAEAD25CA1 WebCore::RenderTreeUpdater::createRenderer
12  00007FFAEAD23654 WebCore::RenderTreeUpdater::updateElementRenderer
13  00007FFAEAD22A04 WebCore::RenderTreeUpdater::updateRenderTree
14  00007FFAEAD22267 WebCore::RenderTreeUpdater::commit
15  00007FFAE927AA41 WebCore::Document::updateRenderTree
16  00007FFAE927B1ED WebCore::Document::resolveStyle
17  00007FFAE927BA31 WebCore::Document::updateStyleIfNeeded
18  00007FFAE927C5BC WebCore::Document::updateLayoutIfDimensionsOutOfDate
19  00007FFAE927C501 WebCore::Document::updateLayoutIfDimensionsOutOfDate
20  00007FFAE9366AB8 WebCore::Element::scrollHeight
21  00007FFAE6FE9C1A WebCore::jsElement_scrollHeightGetter
22  00007FFAE6FA8C55 WebCore::IDLAttribute&lt;WebCore::JSElement&gt;::get&lt;&amp;WebCore::jsElement_scrollHeightGetter,3&gt;
23  00007FFAE6FA8B10 WebCore::jsElement_scrollHeight
24  00007FFB0992B729 WTF::FunctionPtr&lt;57072,long long (JSC::JSGlobalObject *, long long, JSC::PropertyName),1&gt;::operator()
25  00007FFB09C4B441 JSC::PropertySlot::customGetter
26  00007FFB08DDB748 JSC::PropertySlot::getValue
27  00007FFB08DDAF62 JSC::JSValue::get
28  00007FFB09470B23 JSC::LLInt::performLLIntGetByID
29  00007FFB09470850 llint_slow_path_get_by_id
30  00007FFB08D4C839 llint_entry
31  0000020BB95ECAE0 (null)
Exception thrown at 0x00007FFB18F11CAE (WTF.dll) in WebKitWebProcess.exe: 0xC0000005: Access violation writing location 0x00000000BBADBEEF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039761</commentid>
    <comment_count>4</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2024-06-04 15:27:50 -0700</bug_when>
    <thetext>oddly I can&apos;t repro that either. This is getting mysterious.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040556</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-06-10 01:00:56 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 275264 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040558</commentid>
    <comment_count>6</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-06-10 01:04:29 -0700</bug_when>
    <thetext>Oops. Still crashing with 279866@main. Reopened.

ASSERTION FAILED: posChildNeedsLayout() || selfNeedsLayout() || needsSimplifiedNormalFlowLayout() || !parent()
C:\webkit\Source\WebCore\rendering/RenderElement.cpp(1219) : void WebCore::RenderElement::setOutOfFlowChildNeedsStaticPositionLayout()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040769</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-06-11 04:26:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/129576895&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092304</commentid>
    <comment_count>8</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-02-05 16:51:24 -0800</bug_when>
    <thetext>I tested again today with Windows Debug MiniBrowser (289837@main).
This issue no longer happens. Works for me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>