Skip to content

Conversation

@leslieo2
Copy link
Contributor

@leslieo2 leslieo2 commented Oct 7, 2025

PR Description

  • Fix the stop-trace guard to call context.isRunningPerformanceTrace() so we skip page.tracing.stop() when nothing is recording, avoiding the Puppeteer error that bubbled up
    to users.
  • Extend the “does nothing” test to stub tracing.stop() and assert it stays untouched, guaranteeing the guard path is covered.

Testing

  • npm run build
  • node --require ./build/tests/setup.js --no-warnings=ExperimentalWarning --test-force-exit --test-reporter spec --test build/tests/tools/performance.test.js

@google-cla
Copy link

google-cla bot commented Oct 7, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@leslieo2 leslieo2 changed the title fix: guard performance_stop_trace when tracing inactive fix: guard performance_stop_trace when tracing inactive Oct 7, 2025
@OrKoN OrKoN requested a review from jackfranklin October 7, 2025 07:05
Copy link
Contributor

@jackfranklin jackfranklin left a comment

Choose a reason for hiding this comment

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

Great catch, thank you for your fix!

@jackfranklin jackfranklin enabled auto-merge (squash) October 7, 2025 08:47
@leslieo2
Copy link
Contributor Author

leslieo2 commented Oct 7, 2025

Blocked by “workflows awaiting approval”, needs maintainer approval to run CI.

@jackfranklin jackfranklin merged commit 8200194 into ChromeDevTools:main Oct 7, 2025
17 checks passed
OrKoN pushed a commit that referenced this pull request Oct 8, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.6.1](chrome-devtools-mcp-v0.6.0...chrome-devtools-mcp-v0.6.1)
(2025-10-07)


### Bug Fixes

* change default screen size in headless
([#299](#299))
([357db65](357db65))
* **cli:** tolerate empty browser URLs
([#298](#298))
([098a904](098a904))
* guard performance_stop_trace when tracing inactive
([#295](#295))
([8200194](8200194))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
AlinaVarkki pushed a commit that referenced this pull request Oct 13, 2025
PR Description

- Fix the stop-trace guard to call context.isRunningPerformanceTrace()
so we skip page.tracing.stop() when nothing is recording, avoiding the
Puppeteer error that bubbled up
    to users.
- Extend the “does nothing” test to stub tracing.stop() and assert it
stays untouched, guaranteeing the guard path is covered.
AlinaVarkki pushed a commit that referenced this pull request Oct 13, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.6.1](chrome-devtools-mcp-v0.6.0...chrome-devtools-mcp-v0.6.1)
(2025-10-07)


### Bug Fixes

* change default screen size in headless
([#299](#299))
([357db65](357db65))
* **cli:** tolerate empty browser URLs
([#298](#298))
([098a904](098a904))
* guard performance_stop_trace when tracing inactive
([#295](#295))
([8200194](8200194))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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