Skip to content

docs(session-replay): document srcdoc iframe blocking and unblock#18825

Merged
andreiborza merged 1 commit into
masterfrom
ab/session-replay-srcdoc-iframe-docs
Jul 24, 2026
Merged

docs(session-replay): document srcdoc iframe blocking and unblock#18825
andreiborza merged 1 commit into
masterfrom
ab/session-replay-srcdoc-iframe-docs

Conversation

@andreiborza

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Documents that same-origin srcdoc iframes are blocked by default in Session Replay, which currently isn't mentioned anywhere. Users see empty iframe placeholders with no clear reason or fix.

  • Clarify that unblock takes precedence over all blocking, not just blockAllMedia.
  • Document the internal default block list (base, iframe[srcdoc]:not([src])) and why srcdoc iframes are blocked (masking can't run inside them).
  • Add a troubleshooting entry for empty iframes pointing to unblock: ['iframe[srcdoc]'], with the unmasked-content caveat.

Reported in getsentry/sentry-javascript#8241 follow-up and getsentry/rrweb#263.

IS YOUR CHANGE URGENT?

  • None: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

EXTRA RESOURCES

Same-origin srcdoc iframes are blocked by default via the internal
`iframe[srcdoc]:not([src])` selector, but this wasn't documented. Clarify
that `unblock` takes precedence over all blocking (not just `blockAllMedia`),
list the internal default block list, and add a troubleshooting entry for
empty iframes pointing to `unblock: ['iframe[srcdoc]']`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codeowner-assignment
codeowner-assignment Bot requested a review from a team July 24, 2026 08:49
Comment thread platform-includes/replay/privacy-configuration/javascript.mdx
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Jul 24, 2026 8:55am

Request Review

@andreiborza
andreiborza merged commit 5fd19bb into master Jul 24, 2026
22 checks passed
@andreiborza
andreiborza deleted the ab/session-replay-srcdoc-iframe-docs branch July 24, 2026 09:44
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.

2 participants