WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 197286
REGRESSION (
r244182
) [Mac WK2] Layout Test imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=197286
Summary
REGRESSION (r244182) [Mac WK2] Layout Test imported/w3c/web-platform-tests/vi...
Shawn Roberts
Reported
2019-04-25 10:18:40 PDT
The following layout test is flaky on Mac WK2 Release and Debug imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html Probable cause: It appears changes in
https://trac.webkit.org/changeset/244182/webkit
have made this test more flaky. Local testing on Debug is yielding close to 90% failure in 500 iterations. Testing done on
r244181
and older yield on average 1 failure in 500 iterations. Reproduced with : run-webkit-tests imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html --iterations 500 -f --debug --exit-after-n-failures=5 Flakiness Dashboard:
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=imported%2Fw3c%2Fweb-platform-tests%2Fvisual-viewport%2Fviewport-resize-event-on-load-overflowing-page.html
Diff: --- /Volumes/Data/slave/mojave-debug-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page-expected.txt +++ /Volumes/Data/slave/mojave-debug-tests-wk2/build/layout-test-results/imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page-actual.txt @@ -3,5 +3,5 @@ Test Description: This test ensures that we fire a resize event against window.visualViewport if the page has overflow (since this creates a scrollbar and thus changes the viewport size). -PASS Resize event fired exactly once against window.visualViewport if scrollbars affect layout. +FAIL Resize event fired exactly once against window.visualViewport if scrollbars affect layout. assert_equals: expected 1 but got 0
Attachments
Patch
(3.97 KB, patch)
2019-05-21 11:08 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Shawn Roberts
Comment 1
2019-04-25 10:24:57 PDT
Marked flaky in
https://trac.webkit.org/changeset/244651/webkit
Radar WebKit Bug Importer
Comment 2
2019-04-25 10:25:13 PDT
<
rdar://problem/50209891
>
Radar WebKit Bug Importer
Comment 3
2019-04-25 10:25:13 PDT
<
rdar://problem/50209894
>
Said Abou-Hallawa
Comment 4
2019-05-21 11:08:45 PDT
Created
attachment 370329
[details]
Patch
Simon Fraser (smfr)
Comment 5
2019-05-21 11:49:19 PDT
Comment on
attachment 370329
[details]
Patch Does our behavior differ from other browsers here?
Said Abou-Hallawa
Comment 6
2019-05-21 12:22:49 PDT
The test has an overflow scrolling: body { /* Ensure overflow */ height: 200%; } The script waits for the first layout to be done. -- If the browser shows decides it is going to show classic scrollbar for the overflow scroll, the 'resize' event will fire. -- If the bowser decided it is going to show overlay scrollbar, the the 'resize' event will not fire because overlay scroll does not affect the layout. The test then asserts that "if the resize event was fired, the browser would show classic scrollbar for the overflow scroll". Firing the 'resize' event should happen only once. But the test has to wait enough time to ensure the first layout was done, the event was enqueued and the event was dispatched. The patch here makes the waiting time a little bit longer, extra 16ms. So this should not affect other browsers if they adopt the same change.
Said Abou-Hallawa
Comment 7
2019-05-21 12:50:25 PDT
Running: run-webkit-httpd LayoutTests/imported/w3c/web-platform-tests/ opt-tests Then opening the modified test from "
http://localhost:8800/visual-viewport/viewport-resize-event-on-load-overflowing-page.html
" in both Safari and Chrome shows that the test passes. But this bug is about the test being flaky.
WebKit Commit Bot
Comment 8
2019-05-29 16:23:55 PDT
Comment on
attachment 370329
[details]
Patch Clearing flags on attachment: 370329 Committed
r245877
: <
https://trac.webkit.org/changeset/245877
>
WebKit Commit Bot
Comment 9
2019-05-29 16:23:57 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug