test_event_target_radius.html times out on its second run in the same browser (mochitest-plain-repeat)
Categories
(Core :: Layout, task)
Tracking
()
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
In the new mochitest-plain-repeat jobs, layout/base/tests/test_event_target_radius.html times out on its second run on macOS and Windows.
setupIframe sets the cross-origin src of #t14iframe right after un-hiding its container, without a layout flush. The new remote browser is only shown at the embedder's next refresh tick. On a warm second run the example.com document loads before that tick, so waitUntilApzStable → SimpleTest.promiseFocus focuses a document that isn't shown yet. nsFocusManager fires no focus event for it, and promiseFocus waits forever.
The fix flushes layout before setting src, so the remote browser is shown as soon as it is created.
| Assignee | ||
Comment 1•7 days ago
|
||
The iframe's container is shown just before it navigates, so without a flush the remote browser is only shown at the embedder's next refresh tick, and on a warm second run in the same browser the load wins that race.
Awaiting an animation frame before setting src would also work, but only because that tick flushes layout after running the rAF callback; the flush is what the iframe needs.
Updated•5 days ago
|
Updated•23 hours ago
|
Description
•