chrome-devtools-mcp-for-extension 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -89,12 +89,15 @@ export async function inspectIframe(cdp, urlPattern, waitMs = 8000) {
|
|
|
89
89
|
if (!frame) {
|
|
90
90
|
throw new Error(`Iframe not found (tried both OOPIF and regular iframe): ${urlPattern}`);
|
|
91
91
|
}
|
|
92
|
-
// Execute in the frame context
|
|
92
|
+
// Execute in the frame context using Page.createIsolatedWorld
|
|
93
|
+
const { executionContextId } = await cdp.send('Page.createIsolatedWorld', {
|
|
94
|
+
frameId: frame.id,
|
|
95
|
+
});
|
|
93
96
|
await cdp.send('Runtime.enable');
|
|
94
97
|
const htmlResult = await cdp.send('Runtime.evaluate', {
|
|
95
98
|
expression: 'document.documentElement.outerHTML',
|
|
96
99
|
returnByValue: true,
|
|
97
|
-
contextId:
|
|
100
|
+
contextId: executionContextId,
|
|
98
101
|
});
|
|
99
102
|
const html = String(htmlResult?.result?.value ?? '');
|
|
100
103
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome-devtools-mcp-for-extension",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"description": "MCP server for Chrome extension development with Web Store automation. Fork of chrome-devtools-mcp with extension-specific tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./build/src/index.js",
|