<?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>71264</bug_id>
          
          <creation_ts>2011-10-31 21:48:28 -0700</creation_ts>
          <short_desc>ASSERT(!m_inBeforeLoadEventHandler) triggered when forcing a layout in a beforeload listener.</short_desc>
          <delta_ts>2023-01-20 13:29:34 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andy Estes">aestes</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abucur</cc>
    
    <cc>aestes</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>493738</commentid>
    <comment_count>0</comment_count>
      <attachid>113125</attachid>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-10-31 21:48:28 -0700</bug_when>
    <thetext>Created attachment 113125
Test case

Since HTMLObjectElement::updateWidget() is called during layout, we can do certain things in a beforeload listener that would trigger a reentrant layout and hence a re-entrant call to HTMLObjectElement::updateWidget(). A simple case would be calling event.target.offsetWidth in the listener for an object&apos;s beforeload event. See the attached test case. While this triggers an assertion in debug builds, it has no release symptom that I&apos;m aware of.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>493739</commentid>
    <comment_count>1</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-10-31 21:48:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/9319618&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926946</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-20 10:06:47 -0800</bug_when>
    <thetext>I am not able to reproduce this assert in Debug WK2 MiniBrowser using build based of 259136@main on attached test case.

Anything else required or any better step to reproduce beside loading this test case in debug build? Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>113125</attachid>
            <date>2011-10-31 21:48:28 -0700</date>
            <delta_ts>2011-10-31 21:48:28 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>style-recalc-in-beforeload.html</filename>
            <type>text/html</type>
            <size>170</size>
            <attacher name="Andy Estes">aestes</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KICAgIGRvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIoImJlZm9yZWxvYWQiLCBmdW5j
dGlvbihldmVudCkgewogICAgICAgIGV2ZW50LnRhcmdldC5vZmZzZXRXaWR0aDsKICAgIH0sIHRy
dWUpOwo8L3NjcmlwdD4KPGVtYmVkIHNyYz0iZGF0YTp0ZXh0L2h0bWwsUEFTUyI+PC9lbWJlZD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>