Repository navigation
fix(browser): honor same-origin iframe WebMCP restrictions - #4111
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
af61074 to
9501638
Compare
9501638 to
ba6e7fe
Compare
ba6e7fe to
1319ef6
Compare
Deploying openwork with
|
| Latest commit: |
085b055
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e8e55c3e.openwork.pages.dev |
| Branch Preview URL: | https://feature-webmcp-browser-agent.openwork.pages.dev |
|
Deployment failed for project openwork-diagnostics with the following error: Learn More: https://vercel.com/docs/limits#rate-limits |
|
Deployment failed for project openwork-den with the following error: Learn More: https://vercel.com/docs/limits#rate-limits |
|
Deployment failed for project openwork-landing with the following error: Learn More: https://vercel.com/docs/limits#rate-limits |
085b055 to
fa3ce15
Compare
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (64638 ms), confidentiality-review (68645 ms), spec-provenance-review (75560 ms), desktop-den-sync-review (70947 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (fa3ce1587f6ad570022a7fb6a75da4f4c01e0e38). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Current scope
This PR is reconstructed on current
dev, not a replay of the historical WebMCP feature branch. The core feature and the separate callback-result disclosure gate already landed in #4468. The old direct-result return path, obsolete frame lookup, and retired test inventory are not restored.Remaining fixes
toolsrestrictions even when parent and child have the same origin. An explicitallow="tools 'none'"now wins over default same-origin access, including through ancestor containers. Unreadable container policy fails closed; ordinary same-origin access without a directive remains allowed.webmcp-browser-agent.e2e.test.ts. The fixture distinguishes an explicitly denied same-origin frame from an allowed sibling and witnesses callback execution and separate result sharing.Review reconciliation
Verification
Verdict: Incomplete — exact-head native runtime evidence remains missing.
Current head:
fa3ce1587f6ad570022a7fb6a75da4f4c01e0e38, based ondev@23143497940c871bda4a9aaebb82bd86c3f95530.Passed:
node --import ../webmcp-frame-policy-test-resolver.mjs --test apps/desktop/electron/browser-content-preload.test.cjs apps/desktop/electron/webmcp-host.test.mjs apps/desktop/electron/webmcp-policy.test.mjs— exit 0; 28 passed, 0 failed, 0 skipped. The local resolver uses installed Electron and AJV packages; no product implementation is substituted. Omit--importin a normally installed workspace. The first setup attempts failed to resolve Electron; correcting dependency resolution produced this passing run.node --test apps/desktop/electron/webmcp-policy.test.mjs— the two new regressions failed against the unchanged implementation (5 pass / 2 fail), then all seven passed with the fix.node --check evals/packages/env/src/browser-fixture.tsandnode --check evals/specs/webmcp-browser-agent.e2e.test.ts— exit 0; syntax checks only, not typechecking or Chromium execution.git diff --check origin/dev...HEAD— exit 0.Deferred: the extended real Electron journey, embedded fixture-script execution, and whole-package typechecks. The covering runtime command remains
pnpm evals:e2e webmcp-browser-agent; no new native runtime verdict or evidence publication is claimed.