Skip to content

Commit 0f1a5ac

Browse files
iHiDclaude
andauthored
Filter non-actionable "frame window is not ready" errors from Sentry (#8420)
The "Error: frame window is not ready" is thrown by third-party scripts or browser internals when accessing iframe.contentWindow before the frame has finished loading. The error string does not exist in the source code or any dependency, confirming it originates from external code. These errors are not actionable and create noise in Sentry. Closes #8384 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e793cd3 commit 0f1a5ac

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/javascript/utils/react-bootloader.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ if (process.env.SENTRY_DSN) {
6161
)
6262
if (isInvalidOriginError) return null
6363

64+
// Drop non-actionable iframe readiness errors (third-party scripts or browser internals
65+
// accessing iframe.contentWindow before the frame is ready)
66+
const isFrameNotReadyError = event.exception?.values?.some((ex) =>
67+
ex.value?.includes('frame window is not ready')
68+
)
69+
if (isFrameNotReadyError) return null
70+
6471
const tag = document.querySelector<HTMLMetaElement>(
6572
'meta[name="user-id"]'
6673
)

0 commit comments

Comments
 (0)