Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add cross-origin-frame-redact tests; bump coverage ratchet#139

Merged
twschiller merged 1 commit into
mainfrom
coverage/cross-origin-frame-redact-tests
Jun 5, 2026
Merged

Add cross-origin-frame-redact tests; bump coverage ratchet#139
twschiller merged 1 commit into
mainfrom
coverage/cross-origin-frame-redact-tests

Conversation

@twschiller

Copy link
Copy Markdown
Contributor

Summary

  • Brings cross-origin-frame-redact.ts from 18.75% → 93.75% statements (0% → 100% functions). Adds 18 tests covering origin resolution across http(s)/srcdoc/about/data/javascript/blob/invalid URLs, same-origin retention, the REVEALED_ATTR reveal flow, lazy injection via the subtree watcher, and teardown.
  • With the last security rule (cross-origin) now tested, bumps the Jest coverageThreshold ratchet to sit just under the new baseline — global 60/50/55/60 → 62/58/58/61, src/rules/ 75/58/75/75 → 84/71/88/84. Updates the in-config comment to note irrelevant-sections-redact as the remaining untested rule.

Test plan

  • bun run preflight passes (lint + typecheck + knip + jest with coverage)
  • Coverage summary shows ~79% statements / 70% branches / 80% functions
  • Threshold check passes for both global and ./src/rules/

🤖 Generated with Claude Code

Brings cross-origin-frame-redact.ts from 18.75% to 93.75% statements
(0% to 100% functions). Covers origin resolution across http(s)/srcdoc/
about/data/javascript/blob/invalid URLs, same-origin retention, the
REVEALED_ATTR reveal flow, lazy injection via the subtree watcher, and
teardown.

With cross-origin-frame-redact now tested, ratchet thresholds up to sit
just below the new baseline — global 60/50/55/60 → 62/58/58/61, and
src/rules 75/58/75/75 → 84/71/88/84.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-browser-shield-demo-site Ready Ready Preview, Comment Jun 5, 2026 1:05am

Request Review

@twschiller twschiller merged commit df15de5 into main Jun 5, 2026
7 checks passed
@twschiller twschiller deleted the coverage/cross-origin-frame-redact-tests branch June 5, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant