<?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>256297</bug_id>
          
          <creation_ts>2023-05-03 22:50:51 -0700</creation_ts>
          <short_desc>Assert that LocalFrameView::didLayout doesn&apos;t execute any author scripts</short_desc>
          <delta_ts>2023-05-05 11:30:20 -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>Layout and Rendering</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>
          
          <blocked>256296</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</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>1952830</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-05-03 22:50:51 -0700</bug_when>
    <thetext>LocalFrameView::didLayout shouldn&apos;t execute any arbitrary scripts.
Assert this by instantiating ScriptDisallowedScope::InMainThread.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952832</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-05-03 22:53:48 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13436</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952846</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-05-04 00:17:11 -0700</bug_when>
    <thetext>Hm... this doesn&apos;t work because of this call stack:
Thread 1 (Thread 0x7fe05659c9c0 (LWP 149845)):
#0  0x00007fe060bd4ece in WTFCrash () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#1  0x00007fe0622b90ba in WebCore::Document::updateStyleIfNeeded() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#2  0x00007fe062a064f0 in WebCore::LocalFrameViewLayoutContext::performLayout() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#3  0x00007fe062a06b49 in WebCore::LocalFrameViewLayoutContext::layout() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#4  0x00007fe062a0882c in non-virtual thunk to WebCore::LocalFrameView::updateContentsSize() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#5  0x00007fe062b3ae47 in WebCore::ScrollView::updateScrollbars(WebCore::IntPoint const&amp;) () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#6  0x00007fe0629e38fa in WebCore::LocalFrameView::didLayout(WTF::WeakPtr&lt;WebCore::RenderElement, WTF::DefaultWeakPtrImpl&gt;) () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#7  0x00007fe062a0677c in WebCore::LocalFrameViewLayoutContext::performLayout() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#8  0x00007fe062a06b49 in WebCore::LocalFrameViewLayoutContext::layout() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#9  0x00007fe062a0882c in non-virtual thunk to WebCore::LocalFrameView::updateContentsSize() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#10 0x00007fe062b3ae47 in WebCore::ScrollView::updateScrollbars(WebCore::IntPoint const&amp;) () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#11 0x00007fe062b3b144 in WebCore::ScrollView::setContentsSize(WebCore::IntSize const&amp;) () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#12 0x00007fe0629fb140 in WebCore::LocalFrameView::setContentsSize(WebCore::IntSize const&amp;) () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#13 0x00007fe0629fb3cb in WebCore::LocalFrameView::adjustViewSize() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#14 0x00007fe062a0699f in WebCore::LocalFrameViewLayoutContext::performLayout() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1
#15 0x00007fe062a06b49 in WebCore::LocalFrameViewLayoutContext::layout() () at /app/webkit/WebKitBuild/Release/lib/libWPEWebKit-2.0.so.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953101</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-05-04 22:57:02 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13484</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953224</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-05 11:29:29 -0700</bug_when>
    <thetext>Committed 263727@main (43fc954cc78d): &lt;https://commits.webkit.org/263727@main&gt;

Reviewed commits have been landed. Closing PR #13436 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953227</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-05 11:30:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/108958387&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>