Skip to content

fix(clock): keep paused state when the clock log is replayed in parts - #43224

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
mainfrom
fix-43214
Oct 8, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
mainfrom
fix-43214

Conversation

@pavelfeldman

Copy link
Copy Markdown
Member

Summary

  • A new document replays the clock log lazily, at its first clock call. When a user init script reads the time between the clock's init scripts, the log is replayed in parts. Each replay started as "not paused", so a later runFor entry resumed real time. The replay now continues from the current paused state.
  • The real-time timer that inject() starts could advance performance.now() before the log was replayed (seen with pauseAt() without install()). The timer now replays the log first.

Fixes #43214

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

10 flaky ⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › should work with video+trace `@frozen-time-library-chromium-linux`
⚠️ [chromium-library] › library/browsertype-connect.spec.ts:720 › run-server › should record trace with sources `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:356 › screencast › should work for popups `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/webmcp.spec.ts:238 › should call same-name tools in their own frame `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:301 › should report intercepted service worker requests in HAR `@realtime-time-library-chromium-linux`
⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node22`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:257 › third party 'Partitioned;' cookies `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:470 › top level 'Partitioned;' cookie and same origin iframe `@firefox-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-trace.spec.ts:715 › should indicate current test status `@windows-latest-node22`

52996 passed, 1274 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

9048 passed, 1495 skipped


Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: after clock.install() + pauseAt(), an init script that reads the time makes the next page run on real time

2 participants