Skip to content

fix(recorder): do not leak when instantiated in snapshots#33240

Merged
dgozman merged 1 commit intomicrosoft:mainfrom
dgozman:fix-recorder-leak
Oct 23, 2024
Merged

fix(recorder): do not leak when instantiated in snapshots#33240
dgozman merged 1 commit intomicrosoft:mainfrom
dgozman:fix-recorder-leak

Conversation

@dgozman
Copy link
Copy Markdown
Collaborator

@dgozman dgozman commented Oct 23, 2024

Using globalThis.setTimeout() vs InjectedScript.window.setTimeout() makes a big difference. The former retains in the main Trace Viewer window, while the latter only retains in the snapshot iframe window, which is collected upon rendering a new snapshot.

Regressed in #32637.
References #33086, #33219, #33141.

Using `globalThis.setTimeout()` vs `InjectedScript.window.setTimeout()` makes
a big difference. The former retains in the main Trace Viewer window, while
the latter only retains in the snapshot iframe window, which is collected upon
rendering a new snapshot.
@github-actions
Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 failed
❌ [webkit-page] › page/page-leaks.spec.ts:107:5 › fill should not leak @webkit-ubuntu-22.04-node18

4 flaky ⚠️ [firefox-library] › library/client-certificates.spec.ts:705:3 › browser › support http2 if the browser only supports http1.1 @firefox-ubuntu-22.04-node18
⚠️ [installation tests] › playwright-component-testing.spec.ts:21:5 › pnpm: @playwright/experimental-ct-react should work @package-installations-ubuntu-latest @playwright/experimental-ct-react
⚠️ [installation tests] › playwright-test-package-managers.spec.ts:61:5 › yarn: @playwright/test should work @package-installations-ubuntu-latest @playwright/test
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @windows-latest-node18-1

36558 passed, 637 skipped
✔️✔️✔️

Merge workflow run.

@dgozman dgozman merged commit 993a6b2 into microsoft:main Oct 23, 2024
dgozman added a commit to dgozman/playwright that referenced this pull request Oct 24, 2024
dgozman added a commit that referenced this pull request Oct 24, 2024
whazor pushed a commit to whazor/playwright-trace-viewer-plus that referenced this pull request Jan 10, 2026
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.

2 participants