Skip to content

Conversation

@billyvg
Copy link
Member

@billyvg billyvg commented Aug 8, 2024

This fixes a bug with blocking iframes that are dynamically added to the DOM after the snapshot is taken. This ensures we check if iframe is considered blocked before adding to iframe manager.

Closes getsentry/sentry-javascript#13173

billyvg added 2 commits August 8, 2024 18:07
This fixes a bug with iframes that are dynamically added to the DOM after the snapshot is taken where it is not being blocked at all. This ensures we check if iframe is considered blocked before adding to iframe manager.

Closes getsentry/sentry-javascript#13173
@billyvg billyvg marked this pull request as ready for review August 8, 2024 22:18
@billyvg billyvg requested a review from a team August 8, 2024 22:18
Comment on lines +13035 to +13046
\\"node\\": {
\\"type\\": 2,
\\"tagName\\": \\"iframe\\",
\\"attributes\\": {
\\"class\\": \\"rr-block\\",
\\"rr_width\\": \\"104px\\",
\\"rr_height\\": \\"104px\\"
},
\\"childNodes\\": [],
\\"id\\": 23
}
},
Copy link
Member Author

Choose a reason for hiding this comment

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

This is correct as it records the dimensions, but omits the src since it is blocked.

@billyvg billyvg merged commit 62093d4 into sentry-v2 Aug 14, 2024
@billyvg billyvg deleted the feat-rrweb-add-test-for-blocked-iframe branch August 14, 2024 22:30
billyvg added a commit to getsentry/sentry-javascript that referenced this pull request Aug 27, 2024
* [fix(rrdom): Ignore invalid DOM attributes when diffing](getsentry/rrweb#213)
* [fix: manual snapshot in rAF loop](getsentry/rrweb#210) (thanks @ShinyChang)
* [feat: Fix blocking dynamically added iframes](getsentry/rrweb#212)
billyvg added a commit to getsentry/sentry-javascript that referenced this pull request Aug 27, 2024
* [fix(rrdom): Ignore invalid DOM attributes when
diffing](getsentry/rrweb#213)
* [fix: manual snapshot in rAF
loop](getsentry/rrweb#210) (thanks @ShinyChang)
* [feat: Fix blocking dynamically added
iframes](getsentry/rrweb#212)
jakst added a commit to jakst/sentry-replay-stripe that referenced this pull request Sep 3, 2024
Upgrade Sentry to v8.28.0

This include rrweb v2.26.0 with getsentry/rrweb#212 which claims to fix getsentry/sentry-javascript#13173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants