Skip to content

Conversation

YunFeng0817
Copy link
Member

@YunFeng0817 YunFeng0817 commented Nov 13, 2023

This pull request addresses a corner case bug in the recording functionality for pages with nested iframes.
The issue occurs when there is a specific frame structure:

Main frame
	Same-origin iframe
		Cross-origin iframe

In this scenario, the cross-origin iframe nested inside the same-origin iframe is not being recorded at all. This pull request fixes the recording behavior to properly capture the content of the cross-origin iframe.

Copy link

changeset-bot bot commented Nov 13, 2023

🦋 Changeset detected

Latest commit: d4b0f07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
rrweb Patch
rrweb-snapshot Patch
rrdom Patch
rrdom-nodejs Patch
rrweb-player Patch
@rrweb/types Patch
@rrweb/web-extension Patch
rrvideo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Juice10 Juice10 self-requested a review December 4, 2023 16:18
@YunFeng0817 YunFeng0817 force-pushed the fix-cross-origin-iframe branch from 2d25969 to 40d99a9 Compare June 4, 2024 08:25
@YunFeng0817 YunFeng0817 marked this pull request as ready for review June 4, 2024 08:26
@Juice10 Juice10 merged commit 5c27b76 into master Jun 7, 2024
@Juice10 Juice10 deleted the fix-cross-origin-iframe branch June 7, 2024 09:28
jeffdnguyen pushed a commit to pendo-io/rrweb that referenced this pull request Jul 29, 2024
* fix: some nested cross-origin iframes can't be recorded

* fix building error in rrweb-player

* add test case for this special case

* Apply formatting changes

---------

Co-authored-by: YunFeng0817 <[email protected]>
jeffdnguyen pushed a commit to pendo-io/rrweb that referenced this pull request Jul 29, 2024
* fix: some nested cross-origin iframes can't be recorded

* fix building error in rrweb-player

* add test case for this special case

* Apply formatting changes

---------

Co-authored-by: YunFeng0817 <[email protected]>
jxiwang pushed a commit to amplitude/rrweb that referenced this pull request Oct 22, 2024
* fix: some nested cross-origin iframes can't be recorded

* fix building error in rrweb-player

* add test case for this special case

* Apply formatting changes

---------

Co-authored-by: YunFeng0817 <[email protected]>
billyvg pushed a commit to getsentry/rrweb that referenced this pull request Jan 23, 2025
* fix: some nested cross-origin iframes can't be recorded

* fix building error in rrweb-player

* add test case for this special case

* Apply formatting changes

---------

Co-authored-by: YunFeng0817 <[email protected]>
billyvg added a commit to getsentry/rrweb that referenced this pull request Feb 10, 2025
Upstream rrweb-io#1353

* fix: some nested cross-origin iframes can't be recorded
* fix building error in rrweb-player
* add test case for this special case

---------
Co-authored-by: Yun Feng <[email protected]>
Co-authored-by: YunFeng0817 <[email protected]>
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.

2 participants