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): allow clearing when recording is disabled #33821

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Nov 29, 2024

Closes #33802. This regressed in #32880, which aimed to unflake a specific test with a race condition around the mainFrame.instrumentation.onAfterCall callback. As a side effect, it broke clearing a disabled recorder. The fix is to move the this._enabled check up the call chain, so it only impacts the race condition.

@Skn0tt Skn0tt requested a review from dgozman November 29, 2024 15:29
@Skn0tt Skn0tt self-assigned this Nov 29, 2024

This comment has been minimized.

Copy link
Member

@mxschmitt mxschmitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed offline, dispatch 'change' inside restart() or add a 'clear' event.

@Skn0tt
Copy link
Member Author

Skn0tt commented Dec 5, 2024

Implemented the "change inside restart" - adding a clear event seemed would've made the code harder to understand.

@Skn0tt Skn0tt requested a review from mxschmitt December 5, 2024 23:47
Copy link
Contributor

github-actions bot commented Dec 6, 2024

Test results for "tests 1"

37203 passed, 650 skipped
✔️✔️✔️

Merge workflow run.

@dgozman dgozman merged commit 4914f34 into microsoft:main Dec 6, 2024
28 of 29 checks passed
dgozman pushed a commit to dgozman/playwright that referenced this pull request Dec 6, 2024
dgozman added a commit that referenced this pull request Dec 6, 2024
…disabled (#33900)

Co-authored-by: Simon Knott <info@simonknott.de>
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]: Codegen's Clear button doesn't work if not recording
3 participants