You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1ca51a4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(interaction-harness): waitForPresentedMotion reads only the frames from its call on, finds two moves anywhere in them, and decodes PNG frames without a page
C17 ran BottomSheet's dim proof with waitForPresentedMotion at 37b3c4f and it failed in both engines:
- In WebKit it timed out in 12 of 12 runs, though the stopped cast showed the sheet moving on every frame. The wait decoded every frame since the cast's start and asked for the moves to be its newest frames. A cast that started long before the release kept it decoding until the sheet's 550 ms settle had ended, and the frames after that hold still.
- In Chromium its scratch page tripped the proof's compositor trace, which refuses any page opened during its browser-wide record.
The wait now reads only the frames captured from its call on (with the frame before it as where the element stood), and resolves on `frames` consecutive moves anywhere among them. PNG frames, Chromium's, are decoded in Node with zlib and open no page. JPEG frames, WebKit's, still use one scratch page, opened only when needed.
Red first: the self-test's new case starts a 400 ms move after a 1.5 s cast. On 37b3c4f the wait opened a page in Chromium, 8 of 8. Now it opens none and resolves, 16 of 16 at 16 workers in each engine. WebKit's late-catch-up timeout did not reproduce on this page, so C17's sheet is that case. [skip ci]
test('waitForPresentedMotion resolves once the cast shows the element moving, and names a cast that never does',async({
608
+
test('waitForPresentedMotion resolves once the cast shows the element moving, however long the cast ran before, and names a cast that never does',async({
0 commit comments