Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

dgozman
Copy link
Contributor

@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.
Copy link
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
27 of 28 checks passed
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
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