Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(replay): Expose rrweb recordCrossOriginIframes under _experiments #14916

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

dgavranic
Copy link

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:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

This just exposes the API under experiments, as such I don't think it requires tests.

getsentry#14809)

Expose the `recordCrossOriginIframes` option under `_experiments`.
This option records cross-origin iframes for session replay.
@dgavranic dgavranic requested a review from a team as a code owner January 7, 2025 00:10
Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, sorry this got lost. This looks good aside from the one comment.

Comment on lines 155 to 159
// experimental support for recording iframes from different origins
if (_experiments.recordCrossOriginIframes) {
this._recordingOptions.recordCrossOriginIframes = true;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this directly to this._recordingOptions?

this._recordingOptions = {
...
recordCrossOriginIframes: Boolean(_experiments.recordCrossOriginIframes),
};

@billyvg billyvg requested a review from chargome February 14, 2025 21:13
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.

[Replay] Expose rrweb recordCrossOriginIframes under _experiment
2 participants