<?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>261618</bug_id>
          
          <creation_ts>2023-09-15 13:04:47 -0700</creation_ts>
          <short_desc>[ New Test ] (260462@main): [ macOS wk1 debug ] ASSERTION FAILED: !needsLayout() WebCore::Widget::SecurityOriginPaintPolicy, WebCore::EventRegionContext</short_desc>
          <delta_ts>2026-01-05 10:42:08 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Karl Rackler">rackler</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1977748</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2023-09-15 13:04:47 -0700</bug_when>
    <thetext>Description:
imported/w3c/web-platform-tests/preload/link-header-preload-non-html.html

Is a flaky crash on macOS ToT and since 260462@main when the test was added.  The test was added as part of web-platform-tests/preload resync and 260462@main is not the cause of the Assertion, but just when the test was added and uncovered a pre-existing condition.

This issue can be bisected to 260462@main using the command: 
run-webkit-tests --debug -f --clobber-old-results --exit-after-n-failures 1  --force  --child-processes=5 --iterations=50 -1  imported/w3c/web-platform-tests/preload/link-header-preload-non-html.html

History:
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fpreload%2Flink-header-preload-non-html.html&amp;platform=mac&amp;flavor=wk1&amp;style=debug&amp;recent=false

Crash Log:
No crash log found.

stdout:

stderr:
ASSERTION FAILED: !needsLayout()
/OpenSource/Source/WebCore/page/LocalFrameView.cpp(4828) : virtual void WebCore::LocalFrameView::paintContents(WebCore::GraphicsContext &amp;, const WebCore::IntRect &amp;, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::RegionContext *)
1   0x125a3df29 WTFCrash
2   0x1770313cb WTFCrashWithInfo(int, char const*, char const*, int)
3   0x17b8283b5 WebCore::LocalFrameView::paintContents(WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::RegionContext*)
4   0x113c015e7 -[WebFrame(WebInternal) _drawRect:contentsOnly:]
5   0x113c25353 -[WebHTMLView drawSingleRect:]
6   0x113c25999 -[WebHTMLView drawRect:]
7   0x7ff812447690 _NSViewDrawRect
8   0x7ff812c272fa -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
9   0x113c191f6 -[WebHTMLView(WebPrivate) _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
10  0x7ff812c27648 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
11  0x7ff812c27648 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
12  0x7ff812c27648 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
13  0x7ff812c1fc67 __47-[NSView displayRectIgnoringOpacity:inContext:]_block_invoke
14  0x7ff812344f47 NSPerformVisuallyAtomicChange
15  0x7ff8125ae462 -[NSView displayRectIgnoringOpacity:inContext:]
16  0x179764636 WebCore::Widget::paint(WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::RegionContext*)
17  0x17baa02b3 WebCore::ScrollView::paint(WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::RegionContext*)
18  0x17c47bdb5 WebCore::RenderWidget::paintContents(WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;)
19  0x17c47c656 WebCore::RenderWidget::paint(WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;)
20  0x17c343f17 WebCore::RenderLayer::paintForegroundForFragmentsWithPhase(WebCore::PaintPhase, WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::PaintBehavior&gt;, WebCore::RenderObject*)
21  0x17c341c30 WebCore::RenderLayer::paintForegroundForFragments(WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WebCore::GraphicsContext&amp;, WebCore::GraphicsContext&amp;, WebCore::LayoutRect const&amp;, bool, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::PaintBehavior&gt;, WebCore::RenderObject*)
22  0x17c33dd62 WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)
23  0x17c363045 WebCore::RenderLayerBacking::paintIntoLayer(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WTF::OptionSet&lt;WebCore::PaintBehavior&gt;, WebCore::RegionContext*)::$_33::operator()(WebCore::RenderLayer&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;) const
24  0x17c36296b WebCore::RenderLayerBacking::paintIntoLayer(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WTF::OptionSet&lt;WebCore::PaintBehavior&gt;, WebCore::RegionContext*)
25  0x17c363d70 WebCore::RenderLayerBacking::paintContents(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&amp;, WebCore::FloatRect const&amp;, WTF::OptionSet&lt;WebCore::GraphicsLayerPaintBehavior&gt;)
26  0x17bc752fc WebCore::GraphicsLayer::paintGraphicsLayerContents(WebCore::GraphicsContext&amp;, WebCore::FloatRect const&amp;, WTF::OptionSet&lt;WebCore::GraphicsLayerPaintBehavior&gt;)
27  0x17bd72e2e WebCore::GraphicsLayerCA::platformCALayerPaintContents(WebCore::PlatformCALayer*, WebCore::GraphicsContext&amp;, WebCore::FloatRect const&amp;, WTF::OptionSet&lt;WebCore::GraphicsLayerPaintBehavior&gt;)
28  0x179471bed WebCore::PlatformCALayer::drawLayerContents(WebCore::GraphicsContext&amp;, WebCore::PlatformCALayer*, WTF::Vector&lt;WebCore::FloatRect, 5ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, WTF::OptionSet&lt;WebCore::GraphicsLayerPaintBehavior&gt;)
29  0x179541908 -[WebLayer drawInContext:]
30  0x7ff816b27092 CABackingStoreUpdate_
31  0x7ff816b89655 invocation function for block in CA::Layer::display_()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977749</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-15 13:05:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/115569139&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977752</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-09-15 13:15:43 -0700</bug_when>
    <thetext>Test gardening commit 268035@main (78e70e5f16a9): &lt;https://commits.webkit.org/268035@main&gt;

Reviewed commits have been landed. Closing PR #17824 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169404</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2026-01-05 10:42:08 -0800</bug_when>
    <thetext>Closing WebKitLegacy bugs on x86 as we cut-back WebKitLegacy testing. See https://bugs.webkit.org/show_bug.cgi?id=304436.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>