<?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>211325</bug_id>
          
          <creation_ts>2020-05-01 15:17:27 -0700</creation_ts>
          <short_desc>[GTK][STABLE] Kinetic scrolling is broken when AC mode is forced</short_desc>
          <delta_ts>2020-10-07 06:55:26 -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 Local 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=210382</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>aakash.kapoor</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alicem</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1648099</commentid>
    <comment_count>0</comment_count>
    <who name="">aakash.kapoor</who>
    <bug_when>2020-05-01 15:17:27 -0700</bug_when>
    <thetext>Tested using Epiphany 3.36.1 with WebKitGTK 2.28.2 and WebKitGTK 2.28.0 on Fedora 32. Using Nouveau graphics with default settings done by Fedora.

With WEBKIT_FORCE_COMPOSITING_MODE=1, the scrolling behaviour is fast but abrupt and does not have kinetic scroll.
With WEBKIT_DISABLE_COMPOSITING_MODE=1, the scrolling behaviour is slower but has kinetic scroll. 

On default behaviour without setting any of the above environmnent variables, scrolling is stuttery, lacks kinetic scroll and upon the use of Web Inspector, reveals high CPU usage with most of it being spent on Styles Invalidated and Styles Recalculated (an example website for this was macrumors.com). Websites where the above two things aren&apos;t happening (eg. phoronix.com) have smoother scrolling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648103</commentid>
    <comment_count>1</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2020-05-01 15:20:05 -0700</bug_when>
    <thetext>In other words: &quot;Kinetic scrolling doesn&apos;t work in AC mode&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648236</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2020-05-02 05:50:10 -0700</bug_when>
    <thetext>WEBKIT_FORCE_COMPOSITING_MODE=1 means async scrolling is used. Kinetic scrolling as not implemented for async scrolling in 2.28, but it landed in trunk (r259112) se we can probably backport it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657777</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-05-31 07:05:01 -0700</bug_when>
    <thetext>(In reply to Carlos Garcia Campos from comment #2)
&gt; WEBKIT_FORCE_COMPOSITING_MODE=1 means async scrolling is used. Kinetic
&gt; scrolling as not implemented for async scrolling in 2.28, but it landed in
&gt; trunk (r259112) se we can probably backport it.

Added to backports list. This was a serious regression, it should not have happened in stable. :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657784</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2020-05-31 07:39:49 -0700</bug_when>
    <thetext>Well, it only affects people using the force AC mode, so I don&apos;t think it&apos;s so serious. I agree with backporting it, of course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657785</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2020-05-31 07:40:58 -0700</bug_when>
    <thetext>(In reply to Alexander Mikhaylenko from comment #1)
&gt; In other words: &quot;Kinetic scrolling doesn&apos;t work in AC mode&quot;

No, this is not true. It doesn&apos;t work when AC mode is forced. When ondemand is used, AC mode doesn&apos;t use async scrolling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657794</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-05-31 09:31:00 -0700</bug_when>
    <thetext>Um... OK, that&apos;s an odd choice.

I thought https://gitlab.gnome.org/GNOME/epiphany/-/issues/1210 was a duplicate of this issue, but it must not be. We&apos;ll probably report a new bug then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657909</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-06-01 08:15:25 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #6)
&gt; I thought https://gitlab.gnome.org/GNOME/epiphany/-/issues/1210 was a
&gt; duplicate of this issue, but it must not be. We&apos;ll probably report a new bug
&gt; then.

This is not related to AC mode after all, sorry for the noise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1695489</commentid>
    <comment_count>8</comment_count>
    <who name="Alice Mikhaylenko">alicem</who>
    <bug_when>2020-10-07 03:01:25 -0700</bug_when>
    <thetext>Looks like it&apos;s been fixed in https://bugs.webkit.org/show_bug.cgi?id=210382?(other than the regressions, but probably better to track them there)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>