Open
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issuesI have reviewed the documentation https://docs.sentry.io/I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
9.13.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
Sentry.init({
dsn:...,
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
integrations: [
Sentry.replayIntegration({
_experiments:{
recordCrossOriginIframes: true
}
}),
],
})
Steps to Reproduce
- Create a page with two cross-origin iframes
- configure the SDK as above in both main page and iframes
- run a test on the main page
Expected Result
The cross-origin iframes are recorded correctly by the SDK.
Actual Result
When using the setup described above there are 3 resulting replays in Sentry:
- Replay from the main page: shows the page and the contents of the two cross-origin iframes
- Replay from cross-origin iframe1: the replay is listed but not found when trying to open it
- Replay from cross-origin iframe2: same as above
When adding the replay integration only to the main page the cross-origin iframes are not recorded by Sentry.
Originally reported in this internal ticket.
Metadata
Metadata
Assignees
Type
Projects
Status
No status
Milestone
Relationships
Development
No branches or pull requests
Activity
chargome commentedon Apr 30, 2025
The implementation from #14916 looks correct, but the change already states:
We only forward this flag to rrweb, so we don't really control the resulting behaviour of it.
@rodolfoBee might also be worth for the user to look into https://github.com/rrweb-io/rrweb/issues?q=is%3Aissue%20state%3Aopen%20recordCrossOriginIframes for more details.
Regarding not found replays, could you check this on the product side @billyvg?
billyvg commentedon May 5, 2025
I made a copy of the repro here https://stackblitz.com/edit/vitejs-vite-khmuql?file=README.md
re: replays not found, I'm not exactly sure what's going on there, though I did see that the user has dropped replay events in their org, which might be the problem?