bug: browser_snapshot fails on CSP-sandboxed text documents
What's broken
On Paseo Desktop, browser_snapshot fails on a plain-text document served with a CSP sandbox directive. browser_evaluate fails on the same tab with the same generic script-execution error.
A control tab opened on https://example.com immediately afterward succeeds with both tools on the same machine and display state, so this is URL/document-specific rather than the separate Windows painted-frame screenshot issue reported in #3824.
Expected: browser_snapshot returns an accessibility snapshot or plain-text representation, or returns a specific structured unsupported error.
Actual:
Error invoking remote method 'paseo:browser:execute-automation-command': Error: Script failed to execute, this normally means an error was thrown. Check the renderer console for the error.Steps to reproduce
- Start Paseo Desktop v0.5.2 on Windows.
- Open this URL with
browser_new_tab:https://raw.githubusercontent.com/stayhydated/skills/master/skills/manage-workspace-agents-md/SKILL.md - Wait for the URL to load.
- Call
browser_snapshot. - Observe the generic script-execution error above.
- Call
browser_evaluateto readdocument.body.innerText. - Observe:
Script failed to execute, this normally means an error was thrown. Check the renderer console for the error. - Open
https://example.comas a control and repeat both calls. - Observe that
browser_snapshotsucceeds (9 nodes / 1 ref) andbrowser_evaluatereturns:{"readyState":"complete","hidden":false,"visibilityState":"visible","text":"Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\nLearn more"}
The failing URL responds with:
StatusCode: 200
Content-Type: text/plain; charset=utf-8
Content-Disposition:
X-Content-Type-Options: nosniff
Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandboxWhere did this happen
Paseo Desktop (Electron), using Paseo's native browser tools.
Paseo version
0.5.2
OS version
Windows 11 Pro x64, build 26200
Agent provider
Codex
Provider configuration
No special browser configuration. The calls were made through Paseo's local native browser MCP tools.
Logs
The webview registered successfully, followed by Chromium rejecting script execution because the document frame is sandboxed without allow-scripts:
[2026-08-25 12:20:44.997] [info] [browser-webview] registered {
browserId: '233bce43-ccbf-4ecc-afdc-cc9d8c86fbe1',
webContentsId: 20,
registeredBrowserIds: [ '233bce43-ccbf-4ecc-afdc-cc9d8c86fbe1' ]
}
[2026-08-25 12:20:47.808] [error] Blocked script execution in 'https://raw.githubusercontent.com/stayhydated/skills/master/skills/manage-workspace-agents-md/SKILL.md' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
[2026-08-25 12:20:55.925] [error] Blocked script execution in 'https://raw.githubusercontent.com/stayhydated/skills/master/skills/manage-workspace-agents-md/SKILL.md' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
[2026-08-25 12:33:48.325] [error] Blocked script execution in 'https://raw.githubusercontent.com/stayhydated/skills/master/skills/manage-workspace-agents-md/SKILL.md' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
[2026-08-25 12:33:52.748] [error] Blocked script execution in 'https://raw.githubusercontent.com/stayhydated/skills/master/skills/manage-workspace-agents-md/SKILL.md' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.Screenshots or video
None. This is a tool-response failure with no visual UI defect; the raw tool outputs and renderer logs are included above.
Source: getpaseo/paseo