<?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>245616</bug_id>
          
          <creation_ts>2022-09-24 04:46:34 -0700</creation_ts>
          <short_desc>[GTK4] Overscrolling causes high CPU usage when navigation gestures are not enabled</short_desc>
          <delta_ts>2023-09-08 13:40:21 -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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=243924</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>243924</dependson>
          <blocked>210100</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Gabriele Musco">gabmus</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alicem</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>gabmus</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1900853</commentid>
    <comment_count>0</comment_count>
      <attachid>462579</attachid>
    <who name="Gabriele Musco">gabmus</who>
    <bug_when>2022-09-24 04:46:34 -0700</bug_when>
    <thetext>Created attachment 462579
Minimal bug reproducer

As the title says, overscrolling beyond the page limit either up or down causes high CPU usage. This goes away if scrolling back up/down after overscrolling.

This does not happen when enabling enable_back_forward_navigation_gestures.

It can be reproduced with minibrowser, as well as a minimal reproducer I&apos;m attaching to the issue.

To see the issue go away in the reproducer attached uncomment the line saying self.enable_gestures().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900855</commentid>
    <comment_count>1</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2022-09-24 04:49:19 -0700</bug_when>
    <thetext>It&apos;s reproducible in minibrowser as well, so no need for a separate reproducer at this point. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914415</commentid>
    <comment_count>2</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2022-11-23 19:25:34 -0800</bug_when>
    <thetext>Hm, I can&apos;t reproduce this anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929273</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-29 06:12:58 -0800</bug_when>
    <thetext>Hopefully fixed by https://commits.webkit.org/259530@main.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>462579</attachid>
            <date>2022-09-24 04:46:34 -0700</date>
            <delta_ts>2022-09-24 04:46:34 -0700</delta_ts>
            <desc>Minimal bug reproducer</desc>
            <filename>webkitgtk_overscroll_cpu_usage.py</filename>
            <type>text/x-python</type>
            <size>851</size>
            <attacher name="Gabriele Musco">gabmus</attacher>
            
              <data encoding="base64">aW1wb3J0IGdpCgpnaS5yZXF1aXJlX3ZlcnNpb24oJ0d0aycsICc0LjAnKQpnaS5yZXF1aXJlX3Zl
cnNpb24oJ1dlYktpdDInLCAnNS4wJykKCmZyb20gZ2kucmVwb3NpdG9yeSBpbXBvcnQgR3RrLCBX
ZWJLaXQyCgoKY2xhc3MgQXBwKEd0ay5BcHBsaWNhdGlvbik6CiAgICBkZWYgX19pbml0X18oc2Vs
Zik6CiAgICAgICAgc3VwZXIoKS5fX2luaXRfXyhhcHBsaWNhdGlvbl9pZD0nb3JnLmdhYm11cy5n
ZmVlZHMudGVzdGFwcCcpCiAgICAgICAgc2VsZi53aW5kb3cgPSBHdGsuQXBwbGljYXRpb25XaW5k
b3coKQoKICAgIGRlZiBkb19zdGFydHVwKHNlbGYpOgogICAgICAgIEd0ay5BcHBsaWNhdGlvbi5k
b19zdGFydHVwKHNlbGYpCiAgICAgICAgc2VsZi5hZGRfd2luZG93KHNlbGYud2luZG93KQoKICAg
IGRlZiBkb19hY3RpdmF0ZShzZWxmKToKICAgICAgICBzZWxmLndlYnZpZXcgPSBXZWJLaXQyLldl
YlZpZXcoKQogICAgICAgICMgc2VsZi5lbmFibGVfZ2VzdHVyZXMoKQogICAgICAgIHNlbGYud2lu
ZG93LnNldF9jaGlsZChzZWxmLndlYnZpZXcpCiAgICAgICAgc2VsZi53ZWJ2aWV3LmxvYWRfdXJp
KCdodHRwczovL3dlYmtpdC5vcmcnKQogICAgICAgIHNlbGYud2luZG93LnByZXNlbnQoKQoKICAg
IGRlZiBlbmFibGVfZ2VzdHVyZXMoc2VsZik6CiAgICAgICAgc2VsZi53ZWJraXRfc2V0dGluZ3Mg
PSBXZWJLaXQyLlNldHRpbmdzKAogICAgICAgICAgICBlbmFibGVfYmFja19mb3J3YXJkX25hdmln
YXRpb25fZ2VzdHVyZXM9VHJ1ZQogICAgICAgICkKICAgICAgICBzZWxmLndlYnZpZXcuc2V0X3Nl
dHRpbmdzKHNlbGYud2Via2l0X3NldHRpbmdzKQoKCmFwcCA9IEFwcCgpCmFwcC5ydW4oKQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>