<?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>277109</bug_id>
          
          <creation_ts>2024-07-25 16:47:42 -0700</creation_ts>
          <short_desc>REGRESSION (281042@main): [ macOS ] 2x tiled-drawing/scrolling/overflow/overflow-scrolled-* is flaky failing.</short_desc>
          <delta_ts>2025-05-13 18:51:18 -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 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anfernee Viduya">aviduya</reporter>
          <assigned_to name="Matt Woodrow">mattwoodrow</assigned_to>
          <cc>mattwoodrow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2048468</commentid>
    <comment_count>0</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-07-25 16:47:42 -0700</bug_when>
    <thetext>tiled-drawing/scrolling/overflow/overflow-scrolled-down-tile-coverage.html 
tiled-drawing/scrolling/overflow/overflow-scrolled-up-tile-coverage.html 
are flaky failing. 

HISTORY: 
https://results.webkit.org/?platform=mac&amp;style=debug&amp;style=release&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=tiled-drawing%2Fscrolling%2Foverflow%2Foverflow-scrolled-down-tile-coverage.html&amp;test=tiled-drawing%2Fscrolling%2Foverflow%2Foverflow-scrolled-up-tile-coverage.html&amp;version_name=Sonoma&amp;version_name=Ventura

DIFF:
tiled-drawing/scrolling/overflow/overflow-scrolled-down-tile-coverage.html 
@@ -44,12 +44,12 @@
                   (bounds 385.00 3000.00)
                   (drawsContent 1)
                   (visible rect 0.00, 1800.00 385.00 x 512.00)
-                  (coverage rect 0.00, 1544.00 897.00 x 1024.00)
+                  (coverage rect 0.00, 1287.99 385.00 x 1024.01)
                   (intersects coverage rect 1)
                   (contentsScale 1.00)
-                  (tile cache coverage 0, 1536 385 x 1464)
+                  (tile cache coverage 0, 1024 385 x 1536)
                   (tile size 512 x 512)
-                  (top left tile 0, 3 tiles grid 1 x 3)
+                  (top left tile 0, 2 tiles grid 1 x 3)
                   (in window 1)
                 )
               )
tiled-drawing/scrolling/overflow/overflow-scrolled-up-tile-coverage.html
@@ -44,12 +44,12 @@
                   (bounds 385.00 3000.00)
                   (drawsContent 1)
                   (visible rect 0.00, 200.00 385.00 x 512.00)
-                  (coverage rect 0.00, 0.00 897.00 x 1024.00)
+                  (coverage rect 0.00, 200.00 385.00 x 1024.01)
                   (intersects coverage rect 1)
                   (contentsScale 1.00)
-                  (tile cache coverage 0, 0 385 x 1024)
+                  (tile cache coverage 0, 0 385 x 1536)
                   (tile size 512 x 512)
-                  (top left tile 0, 0 tiles grid 1 x 2)
+                  (top left tile 0, 0 tiles grid 1 x 3)
                   (in window 1)
                 )
               )


LINK: 
https://build.webkit.org/results/Apple-Sonoma-Debug-WK2-Tests/281341@main%20(2070)/tiled-drawing/scrolling/overflow/overflow-scrolled-down-tile-coverage-diff.txt
https://build.webkit.org/results/Apple-Sonoma-Debug-WK2-Tests/281341@main%20(2070)/tiled-drawing/scrolling/overflow/overflow-scrolled-up-tile-coverage-diff.txt

DESCRIPTION: 
In 281042@main changes were made that were around WebCore::GraphicsLayer::setTileCoverage</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2048470</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-07-25 16:49:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/132528380&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2048471</commentid>
    <comment_count>2</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-07-25 16:51:05 -0700</bug_when>
    <thetext>REPRODUCIBILITY: 
I was able to reproduce this issue on ToT using command. 

run-webkit-tests 281196@main tiled-drawing/scrolling/overflow/overflow-scrolled-up-tile-coverage.html --iterations=10 --debug

run-webkit-tests 281196@main tiled-drawing/scrolling/overflow/overflow-scrolled-down-tile-coverage.html --iterations=10 --debug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2048474</commentid>
    <comment_count>3</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-07-25 17:06:23 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/31252</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2048650</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-07-26 11:03:47 -0700</bug_when>
    <thetext>Test gardening commit 281407@main (6ead4f05a6e9): &lt;https://commits.webkit.org/281407@main&gt;

Reviewed commits have been landed. Closing PR #31252 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2052199</commentid>
    <comment_count>5</comment_count>
    <who name="Anfernee Viduya">aviduya</who>
    <bug_when>2024-08-12 16:01:20 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/32072</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2052200</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-12 16:03:59 -0700</bug_when>
    <thetext>Test gardening commit 282142@main (1e16f12559d4): &lt;https://commits.webkit.org/282142@main&gt;

Reviewed commits have been landed. Closing PR #32072 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2115802</commentid>
    <comment_count>7</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2025-05-07 21:06:53 -0700</bug_when>
    <thetext>It looks like there’s at least two issues here.

One is that the requestAnimationFrame intervals can happen faster than 16ms, and `HistoricalVelocityData::velocityForNewData` ignores updates faster than, so we can sometimes end up with 0 velocity (for both tests).

The second is that the caller of `TileController::adjustTileCoverageWithScrollingVelocity` recomputes `m_velocity.lastUpdateTime` using `MonotonicTime::now`, and then this function computes the delta with another call. This results in a tiny, but not quite zero time delta. The future rect gets moved by this amount, which I don&apos;t think is correct. The &apos;down&apos; test fails frequently, because this movement value varies a fair bit (racily, depending on the time delta) and affects the position of the final rect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2116020</commentid>
    <comment_count>8</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2025-05-08 18:55:00 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/45143</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2116939</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-05-13 18:51:16 -0700</bug_when>
    <thetext>Committed 294876@main (ec36eefa5d9f): &lt;https://commits.webkit.org/294876@main&gt;

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

    </bug>

</bugzilla>