You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to read the 'contentDocument' property on older browsers => broken page #14313
We are noticing some Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "..." errors coming from older browsers. This results in a broken page for us.
My guess is that those older browsers are throwing a SecurityError instead of returning null when accessing a iframe.contentDocument on an iframe that is hiding its content to Sentry (in this case a Stripe iframe).
This specific error is coming from this line, but there might be other instances of this accessor within the Sentry code.
Expected Result
Sentry should catch that error instead of letting it bubble.
@billyvg / @chargome sounds reasonable to me to guard this in rrweb, what do you think? I checked and we do not use this in sentry-javascript itself, so try-catching this in rrweb sounds OK to me?
Activity
mydea commentedon Nov 15, 2024
@billyvg / @chargome sounds reasonable to me to guard this in rrweb, what do you think? I checked and we do not use this in sentry-javascript itself, so try-catching this in rrweb sounds OK to me?
chargome commentedon Nov 15, 2024
Yep catching sounds good to me here, I'll open up a pr today
jlowcs commentedon Nov 27, 2024
The error is still showing up on 8.40.0. Looking at the source of it, it seems to be coming from https://github.com/getsentry/rrweb. Maybe rrweb was not bumped within sentry-javascript?
billyvg commentedon Dec 4, 2024
@jlowcs Yeah it hasn't been bumped yet, will let you know when we do
billyvg commentedon Dec 10, 2024
@jlowcs This should be released now in 8.43.0