[Webkit-unassigned] [Bug 191289] New: [WebKitTestRunner][DumpRenderTree] document.body.scrollTop is 0 after page is scrolled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 5 17:11:09 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=191289

            Bug ID: 191289
           Summary: [WebKitTestRunner][DumpRenderTree]
                    document.body.scrollTop is 0 after page is scrolled
           Product: WebKit
           Version: WebKit Local Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dbates at webkit.org
                CC: lforschler at apple.com, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 353927

  --> https://bugs.webkit.org/attachment.cgi?id=353927&action=review

LayoutTest

This issue only reproduces in WebKitTestRunner and DumpRenderTree (why?). That is the test passes in Safari when run manually. Apply the attached patch and then run the test:

run-webkit-tests http/tests/navigation/frameset-cross-origin-frame-scrolls-to-anchor.html

The test will fail with the following output diff:

[[
--- /Volumes/.../layout-test-results/http/tests/navigation/frameset-cross-origin-frame-scrolls-to-anchor-expected.txt
+++ /Volumes/.../layout-test-results/http/tests/navigation/frameset-cross-origin-frame-scrolls-to-anchor-actual.txt
@@ -14,9 +14,10 @@
 PASS window.scrollY is 0

 After scroll:
-PASS document.body.scrollTop > 0 is true
+FAIL document.body.scrollTop > 0 should be true. Was false.
 PASS window.scrollY > 0 is true
 PASS successfullyParsed is true
+Some tests failed.

 TEST COMPLETE
]]

The test registers a scroll event listener and emits both document.body.scrollTop and window.scrollY. The scroll event is dispatched and window.scrollY > 0 at the end of the test. For some reason document.body.scrollTop == 0 before and after the test.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181106/d217025b/attachment.html>


More information about the webkit-unassigned mailing list