Skip to content

fix: enable link clicks in email iframe on macOS#230

Open
edvintb wants to merge 2 commits intoavihaymenahem:mainfrom
edvintb:fix/iframe-link-clicks
Open

fix: enable link clicks in email iframe on macOS#230
edvintb wants to merge 2 commits intoavihaymenahem:mainfrom
edvintb:fix/iframe-link-clicks

Conversation

@edvintb
Copy link
Copy Markdown
Contributor

@edvintb edvintb commented Mar 16, 2026

Summary

  • Add allow-scripts to the email iframe sandbox so link click handlers work on WebKit/macOS
  • Safe because DOMPurify already strips all <script> tags and event handler attributes — no email JavaScript can execute

Test plan

  • Click a link in an email body — should open in browser
  • Verify no script execution from email HTML (DOMPurify still strips <script> tags)

🤖 Generated with Claude Code

edvintb and others added 2 commits March 14, 2026 11:42
formatDateOnly used local time methods (getDate/getMonth/getFullYear),
causing all-day events to be off by one day in negative UTC offset timezones
when the input is a UTC midnight timestamp.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
WebKit blocks parent-attached event handlers in sandboxed iframes
without allow-scripts. Add allow-scripts to the iframe sandbox —
DOMPurify already strips all <script> tags and event handler
attributes, so no email JavaScript can execute.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@edvintb edvintb requested a review from avihaymenahem as a code owner March 16, 2026 19:51
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