docs(session-replay): document srcdoc iframe blocking and unblock#18825
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
chargome
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
Documents that same-origin
srcdociframes are blocked by default in Session Replay, which currently isn't mentioned anywhere. Users see empty iframe placeholders with no clear reason or fix.unblocktakes precedence over all blocking, not justblockAllMedia.base,iframe[srcdoc]:not([src])) and why srcdoc iframes are blocked (masking can't run inside them).unblock: ['iframe[srcdoc]'], with the unmasked-content caveat.Reported in getsentry/sentry-javascript#8241 follow-up and getsentry/rrweb#263.
IS YOUR CHANGE URGENT?
PRE-MERGE CHECKLIST
EXTRA RESOURCES