mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 19:58:44 +00:00
Address review feedback: an async predicate with setTimeout inside page.waitForFunction spawns overlapping executions at rAF rate, and checking currentTime stability before arrival can resolve prematurely. Reorder to arrival-first: wait for the target frame via a synchronous rAF-polled predicate, then wait for currentTime to stabilize using a sequential Node-side loop so browser evaluations never overlap.