Title: [251251] trunk/LayoutTests
Revision
251251
Author
[email protected]
Date
2019-10-17 12:06:21 -0700 (Thu, 17 Oct 2019)

Log Message

[iOS Sim] Layout Test scrollingcoordinator/ios/ui-scroll-fixed.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=196612
rdar://problem/49612867

Reviewed by Antti Koivisto.

This test hit a really obscure bug where a combination of an immediate scroll, and
an ancestor reposition left the layer position of a position:fixed layer unchanged.
The position of this layer in the UI process had been previously modified by
the scrolling tree for the scroll, but because the WebContent-side mutations left
the actual position unchanged, we'd never apply a new position via a commit, so left
the layer in the wrong location.

Removing the m_wasScrolledByDelegatedScrollingSincePreviousCommit check in ScrollingTree::applyLayerPositionsAfterCommit()
fixes this, but has perf implications. Alternative fixes require complex state tracking.
Since this is so hard to hit with noisy user scrolling, just change the test to avoid
the perfect storm of scrolls and offsets.

* platform/ios-simulator-wk2/TestExpectations:
* scrollingcoordinator/ios/ui-scroll-fixed-expected.html:
* scrollingcoordinator/ios/ui-scroll-fixed.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (251250 => 251251)


--- trunk/LayoutTests/ChangeLog	2019-10-17 18:49:46 UTC (rev 251250)
+++ trunk/LayoutTests/ChangeLog	2019-10-17 19:06:21 UTC (rev 251251)
@@ -1,3 +1,27 @@
+2019-10-17  Simon Fraser  <[email protected]>
+
+        [iOS Sim] Layout Test scrollingcoordinator/ios/ui-scroll-fixed.html is a flaky failure
+        https://bugs.webkit.org/show_bug.cgi?id=196612
+        rdar://problem/49612867
+
+        Reviewed by Antti Koivisto.
+        
+        This test hit a really obscure bug where a combination of an immediate scroll, and
+        an ancestor reposition left the layer position of a position:fixed layer unchanged.
+        The position of this layer in the UI process had been previously modified by
+        the scrolling tree for the scroll, but because the WebContent-side mutations left
+        the actual position unchanged, we'd never apply a new position via a commit, so left
+        the layer in the wrong location.
+        
+        Removing the m_wasScrolledByDelegatedScrollingSincePreviousCommit check in ScrollingTree::applyLayerPositionsAfterCommit()
+        fixes this, but has perf implications. Alternative fixes require complex state tracking.
+        Since this is so hard to hit with noisy user scrolling, just change the test to avoid
+        the perfect storm of scrolls and offsets.
+
+        * platform/ios-simulator-wk2/TestExpectations:
+        * scrollingcoordinator/ios/ui-scroll-fixed-expected.html:
+        * scrollingcoordinator/ios/ui-scroll-fixed.html:
+
 2019-10-17  Truitt Savell  <[email protected]>
 
         Unreviewed, rolling out r251231.

Modified: trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations (251250 => 251251)


--- trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations	2019-10-17 18:49:46 UTC (rev 251250)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations	2019-10-17 19:06:21 UTC (rev 251251)
@@ -70,8 +70,6 @@
 
 webkit.org/b/195341 fast/viewport/ios/constant-width-viewport-after-changing-view-scale.html [ Pass Failure ]
 
-webkit.org/b/196612 scrollingcoordinator/ios/ui-scroll-fixed.html [ Pass ImageOnlyFailure ]
-
 webkit.org/b/186581 [ Debug ] fast/parser/xml-error-adopted.xml [ Pass Timeout ]
 
 webkit.org/b/196944 imported/w3c/web-platform-tests/hr-time/test_cross_frame_start.html [ Pass Failure ]

Modified: trunk/LayoutTests/scrollingcoordinator/ios/ui-scroll-fixed-expected.html (251250 => 251251)


--- trunk/LayoutTests/scrollingcoordinator/ios/ui-scroll-fixed-expected.html	2019-10-17 18:49:46 UTC (rev 251250)
+++ trunk/LayoutTests/scrollingcoordinator/ios/ui-scroll-fixed-expected.html	2019-10-17 19:06:21 UTC (rev 251251)
@@ -41,7 +41,7 @@
                 return
 
             await UIHelper.delayFor(0);
-            await UIHelper.immediateUnstableScrollTo(0, 50);
+            await UIHelper.immediateUnstableScrollTo(0, 55);
             await UIHelper.delayFor(120); // Wait for scrollbars to disappear.
             testRunner.notifyDone();
         }

Modified: trunk/LayoutTests/scrollingcoordinator/ios/ui-scroll-fixed.html (251250 => 251251)


--- trunk/LayoutTests/scrollingcoordinator/ios/ui-scroll-fixed.html	2019-10-17 18:49:46 UTC (rev 251250)
+++ trunk/LayoutTests/scrollingcoordinator/ios/ui-scroll-fixed.html	2019-10-17 19:06:21 UTC (rev 251251)
@@ -45,7 +45,7 @@
                 return
 
             await UIHelper.delayFor(0);
-            await UIHelper.immediateUnstableScrollTo(0, 50);
+            await UIHelper.immediateUnstableScrollTo(0, 55);
             await UIHelper.delayFor((120)); // Wait for scrollbars to disappear.
             document.getElementById('container').classList.add('changed');
             testRunner.notifyDone();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to