<?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>261674</bug_id>
          
          <creation_ts>2023-09-18 04:57:57 -0700</creation_ts>
          <short_desc>[GTK4] NativeWebWheelEvent crashes on wheel event tests</short_desc>
          <delta_ts>2023-09-18 10:50:44 -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>WebKitGTK</component>
          <version>WebKit Nightly 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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Claudio Saavedra">csaavedra</reporter>
          <assigned_to name="Claudio Saavedra">csaavedra</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1978010</commentid>
    <comment_count>0</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2023-09-18 04:57:57 -0700</bug_when>
    <thetext>In the gtk4 port, at least these tests are crashing due to a GdkEvent not being such:

fast/scrolling/scroll-select-list.html
fast/scrolling/gtk/user-scroll-snapping-interaction.html
fast/scrolling/gtk/repeated-mouse-wheel-smooth.html
fast/repaint/overflow-auto-in-overflow-auto-scrolled.html
fast/forms/search/search-scroll-hidden-decoration-container-crash.html
fast/events/wheel/wheelevent-in-horizontal-scrollbar-in-rtl.html
fast/events/wheel/wheelevent-basic.html
fast/events/wheel/wheel-event-outside-body.html
fast/events/wheel/wheel-event-destroys-frame.html
fast/events/wheel/continuous-platform-wheelevent-in-scrolling-div.html
fast/events/remove-child-onscroll.html

The common stacktrace:

#0  g_logv (log_domain=0x7f6df60f0917 &quot;Gdk&quot;, log_level=G_LOG_LEVEL_CRITICAL, format=&lt;optimized out&gt;, args=&lt;optimized out&gt;) at ../glib/gmessages.c:1422
#1  0x00007f6dff93bc53 in g_log (log_domain=log_domain@entry=0x7f6df60f0917 &quot;Gdk&quot;, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7f6dff99fff7 &quot;%s: assertion &apos;%s&apos; failed&quot;) at ../glib/gmessages.c:1460
#2  0x00007f6dff93ce6d in g_return_if_fail_warning (log_domain=log_domain@entry=0x7f6df60f0917 &quot;Gdk&quot;, pretty_function=pretty_function@entry=0x7f6df60f67a0 &lt;__func__.57&gt; &quot;gdk_event_get_modifier_state&quot;, expression=expression@entry=0x7f6df60f55df &quot;GDK_IS_EVENT (event)&quot;) at ../glib/gmessages.c:2930
#3  0x00007f6df5fd0122 in gdk_event_get_modifier_state (event=&lt;optimized out&gt;) at ../gdk/gdkevents.c:1362
#4  0x00007f6dfc316bdf in WebKit::NativeWebWheelEvent::NativeWebWheelEvent(_GdkEvent*, WebCore::IntPoint const&amp;, WebCore::IntPoint const&amp;, WebCore::FloatSize const&amp;, WebCore::FloatSize const&amp;, WebKit::WebWheelEvent::Phase, WebKit::WebWheelEvent::Phase, bool) () at /app/webkit/WebKitBuild/Release/lib/libwebkitgtk-6.0.so.4
#5  0x00007f6dfc4df716 in webkitWebViewBaseSynthesizeWheelEvent(_WebKitWebViewBase*, double, double, int, int, WheelEventPhase, WheelEventPhase, bool) () at /app/webkit/WebKitBuild/Release/lib/libwebkitgtk-6.0.so.4
#6  0x0000556da20b9120 in WTR::TestController::didReceiveSynchronousMessageFromInjectedBundle(OpaqueWKString const*, void const*, OpaqueWKMessageListener const*) ()

Looks like some #ifdef&apos;ing is missing for the GTK4 port, as GdkEvent usage has changed since GTK3. I&apos;ll look into it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978023</commentid>
    <comment_count>1</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2023-09-18 07:13:33 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/17860</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978060</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-09-18 10:31:01 -0700</bug_when>
    <thetext>Committed 268085@main (ab8e3bcac480): &lt;https://commits.webkit.org/268085@main&gt;

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

    </bug>

</bugzilla>