Skip to content

Fix same-origin View run popups#28

Open
aronprins wants to merge 4 commits into
masterfrom
codex/fix-view-run-window-policy
Open

Fix same-origin View run popups#28
aronprins wants to merge 4 commits into
masterfrom
codex/fix-view-run-window-policy

Conversation

@aronprins

@aronprins aronprins commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • classify Electron new-window requests so same-origin Paperclip routes are navigated in the existing app window
  • keep different-origin HTTP(S) links opening in the default browser
  • deny unsupported, malformed, and credential-bearing window-policy URLs
  • catch failed in-app popup navigation and external browser handoff promises to avoid unhandled rejections from renderer-controlled URLs

Closes #22.

Tests and scans

  • pnpm build && node --test test/window-policy.test.mjs
  • pnpm test:connections
  • pnpm audit --prod
  • pnpm audit --dev

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.

Bug "View run" in Issue

1 participant