<?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>287905</bug_id>
          
          <creation_ts>2025-02-18 15:55:11 -0800</creation_ts>
          <short_desc>Flatenning may be triggered before tree is connected, and the function crashes when reaching a non-connected parent.</short_desc>
          <delta_ts>2025-05-07 12:45: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>New Bugs</component>
          <version>WebKit Local 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="Pedro Varangot">pvarangot</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2095646</commentid>
    <comment_count>0</comment_count>
    <who name="Pedro Varangot">pvarangot</who>
    <bug_when>2025-02-18 15:55:11 -0800</bug_when>
    <thetext>This requires some specific timing/layout like in this test:

&lt;html&gt;
&lt;head&gt;
    &lt;style&gt;
        .class7 {
            perspective: 0px;
        }

        :not(.active) {
            grid;
            white-space-collapse: preserve-breaks;
            container: a0 / inline-size;
            -webkit-mask-box-image: url();
        }
    &lt;/style&gt;
    &lt;script&gt;
        function runTest() {
            body = document.body;
            body.style.setProperty(&quot;border-bottom-width&quot;, &quot;thin&quot;);
            something = document.elementFromPoint(0, 0);
            htmlElement = document.documentElement;
            htmlElement.append(body);
            testRunner?.dumpAsText();
            testRunner?.notifyDone();
        }

        testRunner?.waitUntilDone();
    &lt;/script&gt;
&lt;/head&gt;

&lt;body onload=runTest()&gt;
    &lt;title&gt;Title&lt;/title&gt;
    &lt;p&gt;This test passes if webkit doesn&apos;t crash&lt;/p&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;form class=&quot;class7&quot;&gt;
        &lt;keygen /&gt;
    &lt;/form&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095649</commentid>
    <comment_count>1</comment_count>
    <who name="Pedro Varangot">pvarangot</who>
    <bug_when>2025-02-18 15:59:46 -0800</bug_when>
    <thetext>&lt;rdar://problem/143296083&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095897</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-02-19 09:35:44 -0800</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/40805</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096656</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-02-21 00:19:15 -0800</bug_when>
    <thetext>Committed 290774@main (4810d0915bd9): &lt;https://commits.webkit.org/290774@main&gt;

Reviewed commits have been landed. Closing PR #40805 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2115692</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-05-07 12:45:14 -0700</bug_when>
    <thetext>Committed 289651.483@safari-7621-branch (43b00d11a701): &lt;https://commits.webkit.org/289651.483@safari-7621-branch&gt;

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

    </bug>

</bugzilla>