Uh oh!
There was an error while loading. Please reload this page.
feat(replay): Expose rrweb recordCrossOriginIframes under _experiments - #14916
feat(replay): Expose rrweb recordCrossOriginIframes under _experiments#14916billyvg merged 6 commits into
Conversation
#14809) Expose the `recordCrossOriginIframes` option under `_experiments`. This option records cross-origin iframes for session replay.
billyvg
left a comment
There was a problem hiding this comment.
Thanks for the PR, sorry this got lost. This looks good aside from the one comment.
| // experimental support for recording iframes from different origins | ||
| if (_experiments.recordCrossOriginIframes) { | ||
| this._recordingOptions.recordCrossOriginIframes = true; | ||
| } | ||
There was a problem hiding this comment.
Can you add this directly to this._recordingOptions?
this._recordingOptions = {
...
recordCrossOriginIframes: Boolean(_experiments.recordCrossOriginIframes),
};
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
chargome
left a comment
There was a problem hiding this comment.
Seems reasonable for an experimental flag, let's maybe just inform users about possible risks with this setting. Thanks for adding!
| captureExceptions: boolean; | ||
| traceInternals: boolean; | ||
| continuousCheckout: number; | ||
| recordCrossOriginIframes: boolean; |
There was a problem hiding this comment.
We could leave a note here for security concerns and link to https://github.com/rrweb-io/rrweb/blob/master/docs/recipes/cross-origin-iframes.md
frmsaul
commented
Oct 21, 2025
This is great, is there any sentry docs that show how to get this to work? |
Closes#14809.
I have tested this with my project and it sort of works. While it's not perfect (sometimes produces an unplayable replay), it might unblock other users looking to experiment with this feature.
Verify:
yarn lint) & (yarn test).This just exposes the API under experiments, as such I don't think it requires tests.