Closed Bug 1785159 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 35493 - Replace requestIdleCallback with double-rAF in wpt/accessibility tests

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox106 fixed)

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 35493 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/35493
Details from upstream follow.

Scott Haseley <shaseley@chromium.org> wrote:

Replace requestIdleCallback with double-rAF in wpt/accessibility tests

Two accessibility/crashtests are flaky because requestIdleCallback
requires threaded compositor mode in Blink to work properly. This CL
fixes the flakes by replacing requestIdleCallback with a double-
requestAnimationFrame, which runs the class resetting code after the
main contents has been rendered. This pattern is used by other
accessibility crashtests, e.g. slot-assignment-lockup.html.

Alternatively we could run these tests in the virtutal/threaded test
suite, but changing the tests seems reasonable since there's a precedent
for double-rAF pattern and requestIdleCallback isn't supported yet in
WebKit.

Bug: 1353428
Change-Id: I51497f7f93bf43cbc4e25fb28179e579bd98dc29

Reviewed-on: https://chromium-review.googlesource.com/3834842
WPT-Export-Revision: c0112b948cb4dc881ddb777fb1382c8b8c1e266a

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests

Status Summary

Firefox

PASS: 2

Chrome

PASS: 2

Safari

PASS: 2

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/89fcfab49674 [wpt PR 35493] - Replace requestIdleCallback with double-rAF in wpt/accessibility tests, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.