Chrome DevTools for coding agents
chore(deps-dev): bump puppeteer from 25.8.0 to 25.9.0 in the bundled group across 1 directory (#2631)
dependabot[bot]3626ce53fb4b
diff --git a/package-lock.json b/package-lock.jsonindex ec127a0c..a4965c92 100644--- a/package-lock.json+++ b/package-lock.json@@ -36,7 +36,7 @@"globals": "^17.0.0","lighthouse": "13.4.1","prettier": "^3.6.2",- "puppeteer": "25.8.0",+ "puppeteer": "25.9.0","rollup": "4.62.5","rollup-plugin-cleanup": "^3.2.1","rollup-plugin-license": "^3.6.0",@@ -6048,9 +6048,9 @@}},"node_modules/puppeteer": {- "version": "25.8.0",- "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.8.0.tgz",- "integrity": "sha512-3gcUJ+Jfodb5zNa/lWLZukBUwYiRIwAc8WRICoqfi+ZYmNWqpsPFyanTU3Gw/lhgII9aotVbAmhT6/NKHWgyUA==",+ "version": "25.9.0",+ "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.9.0.tgz",+ "integrity": "sha512-2JqQszD2pyDTpIvBH1ZCXdrHgENVNdJIeOM6asbwHRgWknFiaLd1gNB91w/B/0hQHNpafkpxa90lPpBaJM87Hw==","dev": true,"hasInstallScript": true,"license": "Apache-2.0",@@ -6059,7 +6059,7 @@"chromium-bidi": "17.0.2","devtools-protocol": "0.0.1666840","lilconfig": "^3.1.3",- "puppeteer-core": "25.8.0",+ "puppeteer-core": "25.9.0","typed-query-selector": "^2.12.2"},"bin": {@@ -6070,9 +6070,9 @@}},"node_modules/puppeteer-core": {- "version": "25.8.0",- "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.8.0.tgz",- "integrity": "sha512-LDOrawV8vfCVk+yLj2ozvajNP4Sv3OV9y3Tpiyy2g2Z+aQlbcozP6KJfI4iSBq7YQER+86ihEtPa5ioiZyWxMQ==",+ "version": "25.9.0",+ "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.9.0.tgz",+ "integrity": "sha512-U61rCwSMha62CA/Opy6tCx2Fx+ck7ouiKnbpEApzSoLYMoEu9F71nuFpHL55vmIt33/GYm6eKZVhH2ev0nAIeg==","dev": true,"license": "Apache-2.0","dependencies": {@@ -6081,7 +6081,7 @@"devtools-protocol": "0.0.1666840","typed-query-selector": "^2.12.2","webdriver-bidi-protocol": "0.4.2",- "ws": "^8.21.1"+ "ws": "^8.21.3"},"engines": {"node": ">=22.12.0"@@ -7528,9 +7528,9 @@"license": "ISC"},"node_modules/ws": {- "version": "8.21.1",- "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.1.tgz",- "integrity": "sha512-+0NTnW77fFN/DjQi6k/Sq/Yvk4Sgajw7urW8V+asjXnRgDs9gyGkdb7EzgfhA4goXsRIZKE28fzIXBHEzhuiWw==",+ "version": "8.21.3",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz",+ "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==","dev": true,"license": "MIT","engines": {diff --git a/package.json b/package.jsonindex f89ff1e6..2fc894f4 100644--- a/package.json+++ b/package.json@@ -76,7 +76,7 @@"globals": "^17.0.0","lighthouse": "13.4.1","prettier": "^3.6.2",- "puppeteer": "25.8.0",+ "puppeteer": "25.9.0","rollup": "4.62.5","rollup-plugin-cleanup": "^3.2.1","rollup-plugin-license": "^3.6.0",diff --git a/tests/tools/console.test.js.snapshot b/tests/tools/console.test.js.snapshotindex 8c2cb51c..cc7232b0 100644--- a/tests/tools/console.test.js.snapshot+++ b/tests/tools/console.test.js.snapshot@@ -141,7 +141,7 @@ exports[`console > get_console_message > when dialog is open 1`] = `"args": ["This is an error"],- "stackTrace": "at (VM5:1:9)\\nat (pptr:;CdpFrame.%3Canonymous%3E%20(<file-path>)\\n--- PendingScript ----------------------\\nat (pptr:;CdpFrame.%3Canonymous%3E%20(<file-path>)\\nNote: line and column numbers use 1-based indexing"+ "stackTrace": "at (about:blank:1:17)\\nNote: line and column numbers use 1-based indexing"},"pagination": {"currentPage": 0,diff --git a/tests/tools/console.test.ts b/tests/tools/console.test.tsindex ade614db..89c10c2f 100644--- a/tests/tools/console.test.ts+++ b/tests/tools/console.test.ts@@ -347,20 +347,28 @@ describe('console', () => {page.on('dialog', dialog => resolve(dialog));});- page.evaluate(() => {- alert('test dialog');- });+ const evalPromise = page+ .evaluate(() => {+ alert('test dialog');+ })+ .catch(() => {+ // Ignore TargetCloseError when page is closed with open dialog+ });const dialog = await dialogPromise;- await listConsoleMessages().handler(- {params: {}, page: context.getSelectedMcpPage()},- response,- context,- );+ try {+ await listConsoleMessages().handler(+ {params: {}, page: context.getSelectedMcpPage()},+ response,+ context,+ );- const result = await response.handle(context);- t.assert.snapshot(JSON.stringify(result));- await dialog.dismiss();+ const result = await response.handle(context);+ t.assert.snapshot(JSON.stringify(result));+ } finally {+ await dialog.dismiss();+ await evalPromise;+ }});});});@@ -694,20 +702,30 @@ describe('console', () => {const dialogPromise = new Promise<Dialog>(resolve => {page.on('dialog', dialog => resolve(dialog));});- page.evaluate(() => {- alert('test dialog');- });+ const evalPromise = page+ .evaluate(() => {+ alert('test dialog');+ })+ .catch(() => {+ // Ignore TargetCloseError when page is closed with open dialog+ });const dialog = await dialogPromise;- await getConsoleMessage.handler(- {params: {msgid: 1}, page: context.getSelectedMcpPage()},- response,- context,- );+ try {+ await getConsoleMessage.handler(+ {params: {msgid: 1}, page: context.getSelectedMcpPage()},+ response,+ context,+ );- const result = await response.handle(context);- t.assert.snapshot(stabilizeStructuredContent(result.structuredContent));- await dialog.dismiss();+ const result = await response.handle(context);+ t.assert.snapshot(+ stabilizeStructuredContent(result.structuredContent),+ );+ } finally {+ await dialog.dismiss();+ await evalPromise;+ }});});});diff --git a/tests/tools/pages.test.ts b/tests/tools/pages.test.tsindex b00a2a77..4b4bf1e1 100644--- a/tests/tools/pages.test.ts+++ b/tests/tools/pages.test.ts@@ -881,6 +881,8 @@ describe('pages', () => {});</script>`,);+ // Grant user activation so Chrome permits the beforeunload dialog+ await page.mouse.click(10, 10);await navigatePage().handler({params: {type: 'reload'}, page: context.getSelectedMcpPage()},@@ -908,6 +910,8 @@ describe('pages', () => {});</script>`,);+ // Grant user activation so Chrome permits the beforeunload dialog+ await page.mouse.click(10, 10);await navigatePage().handler({