<?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>255800</bug_id>
          
          <creation_ts>2023-04-21 11:48:52 -0700</creation_ts>
          <short_desc>Crash under MomentumEventDispatcher::displayDidRefresh()</short_desc>
          <delta_ts>2023-04-21 12:12:38 -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>Scrolling</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=253543</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1950437</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-04-21 11:48:52 -0700</bug_when>
    <thetext>Crash reporting shows that WebKitTestRunner can crash under MomentumEventDispatcher::displayDidRefresh() running various scrolling tests, because MomentumEventDispatcher is null here:

Thread 6 Crashed::  
0   com.apple.WebKit              	       0x14c138f9c WebKit::MomentumEventDispatcher::displayDidRefresh(unsigned int)
1   com.apple.WebKit              	       0x14ba63ec4 WebKit::RemoteLayerTreeEventDispatcher::didRefreshDisplay(unsigned int)
2   com.apple.WebKit              	       0x14ba6c488 WebKit::RemoteLayerTreeEventDispatcherDisplayLinkClient::displayLinkFired(unsigned int, WebCore::DisplayUpdate, bool, bool)::&apos;lambda&apos;()::operator()() const
3   com.apple.WebKit              	       0x14ba6c2cc WTF::Detail::CallableWrapper&lt;WebKit::RemoteLayerTreeEventDispatcherDisplayLinkClient::displayLinkFired(unsigned int, WebCore::DisplayUpdate, bool, bool)::&apos;lambda&apos;(), void&gt;::call()
4   com.apple.JavaScriptCore      	       0x119046934 WTF::Function&lt;void ()&gt;::operator()() const
5   com.apple.JavaScriptCore      	       0x116fd8370 WTF::RunLoop::performWork()
6   com.apple.JavaScriptCore      	       0x116fdc994 WTF::RunLoop::performWork(void*)
7   com.apple.CoreFoundation      	       0x182d86d14 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (/AppleInternal/Library/BuildRoots/2fa2494e-d6b7-11ed-97bc-4a062cfa165b/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/RunLoop.subproj/CFRunLoop.c:1957)
8   com.apple.CoreFoundation      	       0x182d86ca8 __CFRunLoopDoSource0 + 176 (/AppleInternal/Library/BuildRoots/2fa2494e-d6b7-11ed-97bc-4a062cfa165b/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/RunLoop.subproj/CFRunLoop.c:2001)
9   com.apple.CoreFoundation      	       0x182d86a18 __CFRunLoopDoSources0 + 244 (/AppleInternal/Library/BuildRoots/2fa2494e-d6b7-11ed-97bc-4a062cfa165b/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/RunLoop.subproj/CFRunLoop.c:2038)
10  com.apple.CoreFoundation      	       0x182d85620 __CFRunLoopRun + 828 (/AppleInternal/Library/BuildRoots/2fa2494e-d6b7-11ed-97bc-4a062cfa165b/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/RunLoop.subproj/CFRunLoop.c:2953)
11  com.apple.CoreFoundation      	       0x182d84c30 CFRunLoopRunSpecific + 600 (/AppleInternal/Library/BuildRoots/2fa2494e-d6b7-11ed-97bc-4a062cfa165b/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/RunLoop.subproj/CFRunLoop.c:3418)
12  com.apple.CoreFoundation      	       0x182e023e0 CFRunLoopRun + 64 (/AppleInternal/Library/BuildRoots/2fa2494e-d6b7-11ed-97bc-4a062cfa165b/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/RunLoop.subproj/CFRunLoop.c:3444)
13  com.apple.JavaScriptCore      	       0x116fdcf3c WTF::RunLoop::run()
14  com.apple.JavaScriptCore      	       0x116fda500 WTF::RunLoop::create(char const*, WTF::ThreadType, WTF::Thread::QOS)::$_1::operator()() const
15  com.apple.JavaScriptCore      	       0x116fda48c WTF::Detail::CallableWrapper&lt;WTF::RunLoop::create(char const*, WTF::ThreadType, WTF::Thread::QOS)::$_1, void&gt;::call()
16  com.apple.JavaScriptCore      	       0x119046934 WTF::Function&lt;void ()&gt;::operator()() const
17  com.apple.JavaScriptCore      	       0x117020fe4 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*)
18  com.apple.JavaScriptCore      	       0x11702d5b0 WTF::wtfThreadEntryPoint(void*)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950438</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-04-21 11:49:29 -0700</bug_when>
    <thetext>&lt;rdar://108105416&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>