| Summary: | 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 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Shawn Roberts <sroberts> | ||||
| Component: | Tools / Tests | Assignee: | Said Abou-Hallawa <sabouhallawa> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, jlewis3, lforschler, ryanhaddad, sabouhallawa, simon.fraser, tsavell, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Shawn Roberts
2019-04-25 10:18:40 PDT
Marked flaky in https://trac.webkit.org/changeset/244651/webkit Created attachment 370329 [details]
Patch
Comment on attachment 370329 [details]
Patch
Does our behavior differ from other browsers here?
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.
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. Comment on attachment 370329 [details] Patch Clearing flags on attachment: 370329 Committed r245877: <https://trac.webkit.org/changeset/245877> All reviewed patches have been landed. Closing bug. |