文件历史

提交图

25 次代码提交

作者 SHA1 备注 提交日期
Alex Rudenko 9bc61b43d6 refactor: make collectors work per page (#2324) 2026-07-09 10:03:03 +00:00
Asish Kumar ea57e863f8 fix: ignore unmapped PerformanceIssue events (#1852)
## Summary

- ignore Audits `PerformanceIssue` events before passing them to the
DevTools IssuesManager mapper, which currently has no handler for that
issue code
- preserve the existing mapper/logging path for other issue codes
- add regression coverage that `PerformanceIssue` is ignored without
collecting an issue or writing a console warning

Fixes #1850

## Testing

- `npm run build`
- `npm run test:no-build -- tests/PageCollector.test.ts`
- `npm run check-format`

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
2026-04-17 12:34:05 +00:00
dependabot[bot] 93691110b9 chore(deps-dev): bump puppeteer from 24.40.0 to 24.41.0 in the bundled group (#1869)
Bumps the bundled group with 1 update:
[puppeteer](https://github.com/puppeteer/puppeteer).

Updates `puppeteer` from 24.40.0 to 24.41.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/puppeteer/puppeteer/releases">puppeteer's
releases</a>.</em></p>
<blockquote>
<h2>puppeteer-core: v24.41.0</h2>
<h2><a
href="https://github.com/puppeteer/puppeteer/compare/puppeteer-core-v24.40.0...puppeteer-core-v24.41.0">24.41.0</a>
(2026-04-15)</h2>
<h3>🎉 Features</h3>
<ul>
<li>add support for Issues (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14845">#14845</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/6e8dbe7a998a3619f089f549009ebcb860389fdd">6e8dbe7</a>)</li>
<li>adds extension realms api (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14824">#14824</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/c14f4ae7ee65fd95a4a1f9d722e73f67c37da44b">c14f4ae</a>)</li>
<li>API to list installed browser extensions and trigger extension
actions (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14821">#14821</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/d6395ef88103a50cb2b2c43f61953ab6a495a8c3">d6395ef</a>)</li>
<li>implement console event on web workers (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14784">#14784</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/fa6158a1dfa327df8dc8eea1eb22c49efefb3be5">fa6158a</a>)</li>
<li>roll to Chrome 147.0.7727.24 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14797">#14797</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/ee81786a8285e20afdee70e4fb8660df4d6748b0">ee81786</a>)</li>
<li>roll to Firefox 149.0 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14799">#14799</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/9fd5ceb054b0508bd8f4b14ed950a011a31f101a">9fd5ceb</a>)</li>
<li><strong>webmcp:</strong> add hook for tool invocation (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14835">#14835</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/cf8169d5dee0bbff06118c211969eb94849f6bbd">cf8169d</a>)</li>
<li><strong>webmcp:</strong> add hook for tool response (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14841">#14841</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/6fb05bc9e45fb2735a1c44b59ad868af2fb1ee9b">6fb05bc</a>)</li>
<li><strong>webmcp:</strong> add initial API to inspect tool
registrations (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14814">#14814</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/655c996fed21d4ac7f5df841aef0c6b246ba2e9d">655c996</a>)</li>
<li><strong>webmcp:</strong> add WebMCPTool execute support (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14851">#14851</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/8f95117960af969ee31595406f985c924eb67bf1">8f95117</a>)</li>
<li><strong>webmcp:</strong> expose WebMCPToolCall in
WebMCPToolCallResult (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14848">#14848</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/242ac0b2d364e9463f2b0e37f26d8bd0cfdf4d3e">242ac0b</a>)</li>
<li><strong>webmcp:</strong> Switch from WebMCPInvocationStatus Success
to Completed (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14859">#14859</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/375e636beedaa5fef53d5f198fa70229d47155b5">375e636</a>)</li>
</ul>
<h3>🛠️ Fixes</h3>
<ul>
<li>add missing onRelease to Mutex and add tests (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14818">#14818</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/bf1e9722eef723c80250119d81fd9d9e0596c074">bf1e972</a>)</li>
<li>make <code>Target.asPage</code> return the same Page instance (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14862">#14862</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/e484a918c432859efbf57a74b4957097b13f8575">e484a91</a>)</li>
<li>remove RenderDocument from disabled Chrome features (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14745">#14745</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/a48eba24dcb2663da543bdf1f4597a2c1a56f0ff">a48eba2</a>)</li>
<li>roll to Chrome 147.0.7727.50 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14819">#14819</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/2be30023994ee2e7ebb15e43dc0e2804256f8ca2">2be3002</a>)</li>
<li>roll to Chrome 147.0.7727.56 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14842">#14842</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/fdb3c64f8bfcff367eab862c0309f9c4bf6d6f20">fdb3c64</a>)</li>
<li>roll to Firefox 149.0.2 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14838">#14838</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/55359a3d7383c03a9d9de7ff8e24b613655694e8">55359a3</a>)</li>
<li>without azimuthAngle the altitudeAngle should no be specified (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14781">#14781</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/6f9d9752207d55be0e3b0d10ba9a416a81af4694">6f9d975</a>)</li>
</ul>
<h3>📄 Documentation</h3>
<ul>
<li>update extension and realm docs (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14867">#14867</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/080379bf24c6bd021d664bcf993457542cf76dcc">080379b</a>)</li>
<li><strong>webmcp:</strong> Add JS example to WebMCP class (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14852">#14852</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/c514dba3316e742f2d2b428fd72a49890c0a2255">c514dba</a>)</li>
<li><strong>webmcp:</strong> Add missing documentation (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14849">#14849</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/76b08d20305283b9a2a2ccd5cf9c2f5bad63e337">76b08d2</a>)</li>
<li><strong>webmcp:</strong> tune tags and descriptions (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14844">#14844</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/578295815ca559790626b8aeeddeea9f9cef67be">5782958</a>)</li>
</ul>
<h2>puppeteer: v24.41.0</h2>
<h2><a
href="https://github.com/puppeteer/puppeteer/compare/puppeteer-v24.40.0...puppeteer-v24.41.0">24.41.0</a>
(2026-04-15)</h2>
<h3>🎉 Features</h3>
<ul>
<li>roll to Chrome 147.0.7727.24 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14797">#14797</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/ee81786a8285e20afdee70e4fb8660df4d6748b0">ee81786</a>)</li>
</ul>
<h3>Dependencies</h3>
<ul>
<li>The following workspace dependencies were updated</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md">puppeteer's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/puppeteer/puppeteer/compare/puppeteer-v24.40.0...puppeteer-v24.41.0">24.41.0</a>
(2026-04-15)</h2>
<h3>🎉 Features</h3>
<ul>
<li>add support for Issues (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14845">#14845</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/6e8dbe7a998a3619f089f549009ebcb860389fdd">6e8dbe7</a>)</li>
<li>adds extension realms api (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14824">#14824</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/c14f4ae7ee65fd95a4a1f9d722e73f67c37da44b">c14f4ae</a>)</li>
<li>API to list installed browser extensions and trigger extension
actions (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14821">#14821</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/d6395ef88103a50cb2b2c43f61953ab6a495a8c3">d6395ef</a>)</li>
<li>implement console event on web workers (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14784">#14784</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/fa6158a1dfa327df8dc8eea1eb22c49efefb3be5">fa6158a</a>)</li>
<li>roll to Chrome 147.0.7727.24 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14797">#14797</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/ee81786a8285e20afdee70e4fb8660df4d6748b0">ee81786</a>)</li>
<li>roll to Firefox 149.0 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14799">#14799</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/9fd5ceb054b0508bd8f4b14ed950a011a31f101a">9fd5ceb</a>)</li>
<li><strong>webmcp:</strong> add hook for tool invocation (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14835">#14835</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/cf8169d5dee0bbff06118c211969eb94849f6bbd">cf8169d</a>)</li>
<li><strong>webmcp:</strong> add hook for tool response (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14841">#14841</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/6fb05bc9e45fb2735a1c44b59ad868af2fb1ee9b">6fb05bc</a>)</li>
<li><strong>webmcp:</strong> add initial API to inspect tool
registrations (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14814">#14814</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/655c996fed21d4ac7f5df841aef0c6b246ba2e9d">655c996</a>)</li>
<li><strong>webmcp:</strong> add WebMCPTool execute support (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14851">#14851</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/8f95117960af969ee31595406f985c924eb67bf1">8f95117</a>)</li>
<li><strong>webmcp:</strong> expose WebMCPToolCall in
WebMCPToolCallResult (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14848">#14848</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/242ac0b2d364e9463f2b0e37f26d8bd0cfdf4d3e">242ac0b</a>)</li>
<li><strong>webmcp:</strong> Switch from WebMCPInvocationStatus Success
to Completed (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14859">#14859</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/375e636beedaa5fef53d5f198fa70229d47155b5">375e636</a>)</li>
</ul>
<h3>Dependencies</h3>
<ul>
<li>The following workspace dependencies were updated
<ul>
<li>dependencies
<ul>
<li>puppeteer-core bumped from 24.40.0 to 24.41.0</li>
</ul>
</li>
</ul>
</li>
</ul>
<h3>🛠️ Fixes</h3>
<ul>
<li>add missing onRelease to Mutex and add tests (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14818">#14818</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/bf1e9722eef723c80250119d81fd9d9e0596c074">bf1e972</a>)</li>
<li>make <code>Target.asPage</code> return the same Page instance (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14862">#14862</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/e484a918c432859efbf57a74b4957097b13f8575">e484a91</a>)</li>
<li>remove RenderDocument from disabled Chrome features (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14745">#14745</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/a48eba24dcb2663da543bdf1f4597a2c1a56f0ff">a48eba2</a>)</li>
<li>roll to Chrome 147.0.7727.50 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14819">#14819</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/2be30023994ee2e7ebb15e43dc0e2804256f8ca2">2be3002</a>)</li>
<li>roll to Chrome 147.0.7727.56 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14842">#14842</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/fdb3c64f8bfcff367eab862c0309f9c4bf6d6f20">fdb3c64</a>)</li>
<li>roll to Firefox 149.0.2 (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14838">#14838</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/55359a3d7383c03a9d9de7ff8e24b613655694e8">55359a3</a>)</li>
<li>without azimuthAngle the altitudeAngle should no be specified (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14781">#14781</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/6f9d9752207d55be0e3b0d10ba9a416a81af4694">6f9d975</a>)</li>
</ul>
<h3>📄 Documentation</h3>
<ul>
<li>update extension and realm docs (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14867">#14867</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/080379bf24c6bd021d664bcf993457542cf76dcc">080379b</a>)</li>
<li><strong>webmcp:</strong> Add JS example to WebMCP class (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14852">#14852</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/c514dba3316e742f2d2b428fd72a49890c0a2255">c514dba</a>)</li>
<li><strong>webmcp:</strong> Add missing documentation (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14849">#14849</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/76b08d20305283b9a2a2ccd5cf9c2f5bad63e337">76b08d2</a>)</li>
<li><strong>webmcp:</strong> tune tags and descriptions (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14844">#14844</a>)
(<a
href="https://github.com/puppeteer/puppeteer/commit/578295815ca559790626b8aeeddeea9f9cef67be">5782958</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/2d05dfcfa321f7e6289e4658cd6f0cced3d62fe2"><code>2d05dfc</code></a>
fix: bump node to 24 to avoid publishing bugs with npm (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14868">#14868</a>)</li>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/20402bc0f9a7daeee2afc6a9859a55ff9bf0e391"><code>20402bc</code></a>
chore: release main (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14866">#14866</a>)</li>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/080379bf24c6bd021d664bcf993457542cf76dcc"><code>080379b</code></a>
docs: update extension and realm docs (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14867">#14867</a>)</li>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/1f9dc746565c818d59fff9e84c3c795ddd2ec32d"><code>1f9dc74</code></a>
chore(deps): bump follow-redirects from 1.15.11 to 1.16.0 in /website
(<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14865">#14865</a>)</li>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/4655500ac52c67c782a956ea66270dfcf5a38d91"><code>4655500</code></a>
chore(deps-dev): bump the dev-dependencies group with 8 updates (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14855">#14855</a>)</li>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/d5029415e2c3d83ed340cf29733662e9f0b58434"><code>d502941</code></a>
test: fix extension test flakiness (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14864">#14864</a>)</li>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/e484a918c432859efbf57a74b4957097b13f8575"><code>e484a91</code></a>
fix: make <code>Target.asPage</code> return the same Page instance (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14862">#14862</a>)</li>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/c14f4ae7ee65fd95a4a1f9d722e73f67c37da44b"><code>c14f4ae</code></a>
feat: adds extension realms api (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14824">#14824</a>)</li>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/5097b97d07eb0e3c68d99fce80efe899084a313d"><code>5097b97</code></a>
test: fix flaky extension test (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14853">#14853</a>)</li>
<li><a
href="https://github.com/puppeteer/puppeteer/commit/8f95117960af969ee31595406f985c924eb67bf1"><code>8f95117</code></a>
feat(webmcp): add WebMCPTool execute support (<a
href="https://redirect.github.com/puppeteer/puppeteer/issues/14851">#14851</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/puppeteer/puppeteer/compare/puppeteer-v24.40.0...puppeteer-v24.41.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=puppeteer&package-manager=npm_and_yarn&previous-version=24.40.0&new-version=24.41.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
2026-04-16 05:57:05 +00:00
Flo 1e6456ce22 perf(memory): release old navigation request in NetworkCollector (#1200)
Issue #1192

## Problem
In `--autoConnect` mode, `chrome-devtools-mcp` experiences a severe
memory leak (~13 MB/min) when Chrome is actively used. This eventually
leads to OOM crashes or kernel panics.

The root cause is in `src/PageCollector.ts`:
1. `NetworkCollector` overrides `splitAfterNavigation` but forgets to
call `navigations.splice(this.#maxNavigationSaved)`, causing the array
of navigations to grow infinitely.
2. Even within a single navigation (e.g., in long-lived SPA
applications), the `navigations[0]` array grows infinitely because there
is no limit on the number of items collected per navigation. Since
`HTTPRequest` objects are heavy, this quickly exhausts memory.

## Solution
1. Changed `#maxNavigationSaved` to `protected maxNavigationSaved` so
subclasses can access it.
2. Added `navigations.splice(this.maxNavigationSaved)` to
`NetworkCollector.splitAfterNavigation` to ensure old navigations are
properly discarded.
3. Introduced `protected maxItemsPerNavigation = 5000` to limit the
number of items stored per navigation. When the limit is reached, the
oldest item is removed (`shift()`), preventing unbounded memory growth
in SPAs.

Tested locally by running `npm run build` and verifying the fix.

---------

Co-authored-by: Wolfgang Beyer <woolfi.b@gmail.com>
2026-03-20 11:02:10 +00:00
Alex Rudenko c9691c6250 test: fix missing sinon.restore (#989) 2026-02-18 15:39:30 +00:00
Simon Zünd f4cfd4664e chore: introduce SymbolizedError class (#890)
The "SymbolizedError" class represents a fully resolved error: The stack
trace is fully resolved and (in the future), the full `Error.cause`
chain is also fully resolved.

We'll use the `SymbolizedError` for both "uncaught exceptions" as well
as when logging `Error` objects to the console (e.g. `console.log(new
Error())`. This means the `resolvedArgs` array in `ConsoleFormatter`
will contain one `SymbolizedError` instance for every `Error` object
logged.
2026-02-05 07:57:21 +00:00
Simon Zünd 67d4b7aab6 chore: emit UncaughtError events for Runtime.exceptionThrown (#871)
Follow-up PRs will implement formatting of `UncaughtError`s and actually
collecting them.
2026-02-03 08:52:49 +00:00
Alex Rudenko 657b996733 build: namespace devtools exports (#662) 2025-12-11 13:12:01 +01:00
Alex Rudenko 94b899c205 build: bundle devtools frontend (#656) 2025-12-11 11:51:04 +01:00
Alex Rudenko d8921453c7 feat: integrate DevTools issues into the console tools (#636)
Now that all PRs by @nattallius have landed, this PR removes the feature
flag introduced in
https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/575 and makes
issues available by default.

- list_console_messages has a new message type called `issue` to filter
for DevTools issues
- get_console_message returns details for the issues.

DevTools issues help to identify and fix problems on web pages. See
https://developer.chrome.com/docs/devtools/issues for more details.

PRs contributing this feature:

- https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/505
- https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/594
- https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/594
2025-12-02 11:04:37 +01:00
Simon Zünd 7fd8d1ac9e chore: pass Page[] to PageCollector.init for consistency (#629)
Small cleanup PR that uses the result of `createPagesSnapshot` and
passes it to the two collector instances. This way, we consistently
apply the `Page[]` filtering done by `createPagesSnapshot` and we don't
have to forward the `experimentalIncludeAllPages` option to all
collectors.
2025-11-28 10:44:06 +00:00
Simon Zünd 8e90a92780 chore: split withBrowser into withBrowser and withMcpContext (#620)
I split this PR off from my "create one DevTools universe per page" PR
in preparation. This allows tests to re-use browser instances without
creating an `McpContext`.

Drive-by: Move mocked browser/page into utils.ts.
2025-11-28 07:52:52 +01:00
zyzyzyryxy 94752ffade fix: prevent dropping license notices on some files when publishing (#604)
This PR prevents license notices being dropped when creating package for
publication.

This can happen when first import in the file is type-only import that
gets removed during build. When there is no empty line between the
license block comment and such import, the comment is treated as related
to the import and gets removed alongside it.
Adding an empty line between copyright notice and the import fixes the
issue.

Co-authored-by: Piotr Paulski <piotrpaulski@chromium.org>
2025-11-24 12:38:30 +00:00
Alex Rudenko 08e9a9f42e refactor: disable issues in list_console_messages for now (#575)
Disabled the feature until the detail tool is ready.
2025-11-19 09:28:31 +01:00
Alex Rudenko c3784d1990 refactor: clear issue aggregator on page navigation (#565)
- fixes a memory leak introduced previously (I could not pinpoint it but
McpContext was retained for subsequent tests).
- adds a test that issue continue being aggregated on reload.
- moves page-specific logic to a class.
2025-11-17 15:52:37 +01:00
Alex Rudenko 3b016f1a81 refactor: simplify issue management (#564)
follow-up for
https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/505
2025-11-17 12:25:51 +01:00
Natasha Gorshunova c1e4118992 feat: report console issues in list_console_messages (#505)
Co-authored-by: Natallia Harshunova <nharshunova@chromium.org>
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2025-11-17 10:38:46 +01:00
Nikolay Vitkov 4c65f59cf9 fix: retrieve data correctly with fewer than 3 navigations (#451)
Also adds test for navigation
2025-10-21 16:53:30 +00:00
Nikolay Vitkov 165cf9c70b feat: expose previous navigations to the MCP (#419)
We should consider changing the order of element shown in the from the
collectors to be show newest first rather then the current oldest first
approach.

Closes https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/88
2025-10-21 12:25:08 +00:00
Nikolay Vitkov b8738221d8 refactor: store the last 3 navigations in PageCollector (#411)
Refactors the code to support
https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/88

We keep each navigation in a separate array, that we can then expose to
the user.
2025-10-17 16:20:38 +02:00
Nikolay Vitkov f4d7b49bb1 feat: support stable id for network requests (#375)
This is part 1, we just expose the uid here, in a follow up PR we will
be used for finding the request.
2025-10-14 12:45:16 +02:00
Nikolay Vitkov 76d5e9416d refactor: dispose listeners on page destroyed (#318) 2025-10-13 18:38:23 +02:00
Nikolay Vitkov 0412878bf5 fix: PageCollector subscribing multiple times (#241)
We were setting the storage inside the first collect callback which mean
that we double subscribed to the events.

This affected Network request and Console messages
2025-10-01 16:33:55 +02:00
Nikolay Vitkov 15277541d8 chore: add additional EsLint rule (#147) 2025-09-25 17:20:01 +02:00
Alex Rudenko 31a0bdce26 feat: initial version 2025-09-11 12:46:05 +02:00