Skip to content

recordCrossOriginIframes option not recording cross origin iframes #16173

Open
@rodolfoBee

Description

@rodolfoBee

Is there an existing issue for this?

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

  1. Create a page with two cross-origin iframes
  2. configure the SDK as above in both main page and iframes
  3. 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

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions