getsentry / rrweb

record and replay the web
https://www.rrweb.io/
Other
9 stars 4 forks source link

feat(snapshot): Check "blocked" status of iframes before accessing `contentDocument` #201

Closed billyvg closed 3 weeks ago

billyvg commented 3 weeks ago

Do not attempt to access contentDocument of iframe if element is blocked, otherwise it will trigger a browser warning. e.g.

Blocked a frame with origin "<foo>" from accessing a frame with origin "<bar>". Protocols, domains, and ports must match.

Fixes https://github.com/getsentry/sentry-javascript/issues/6560