Repository navigation
DEFAULT_IGNORE_ERRORS's Facebook mobile browser fails to match when wrapped in something else #23733
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react-router
SDK Version
10.70.0
Framework Version
No response
Link to Sentry event
https://thatskyapplication.sentry.io/issues/139365437/?project=4510164823375952
Reproduction Example/SDK Setup
Note
I had to tick I am using the latest SDK release, but that is irrelevant.
#15430 added a way to ignore these events by default, but it is wrapped in ^ and $. The issue is here:
sentry-javascript/packages/core/src/integrations/eventFilters.ts
Lines 10 to 24 in 1cc3bbc
| // "Script error." is hard coded into browsers for errors that it can't read. | |
| // this is the result of a script being pulled in from an external domain and CORS. | |
| const DEFAULT_IGNORE_ERRORS = [ | |
| /^Script error\.?$/, | |
| /^Javascript error: Script error\.? on line 0$/, | |
| /^ResizeObserver loop completed with undelivered notifications.$/, // The browser logs this when a ResizeObserver handler takes a bit longer. Usually this is not an actual issue though. It indicates slowness. | |
| /^Cannot redefine property: googletag$/, // This is thrown when google tag manager is used in combination with an ad blocker | |
| /^Can't find variable: gmo$/, // Error from Google Search App https://issuetracker.google.com/issues/396043331 | |
| /^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/, // Random error that happens but not actionable or noticeable to end-users. | |
| /can't redefine non-configurable property "solana"/, // Probably a browser extension or custom browser (Brave) throwing this error | |
| /vv\(\)\.getRestrictions is not a function/, // Error thrown by GTM, seemingly not affecting end-users | |
| /Can't find variable: _AutofillCallbackHandler/, // Unactionable error in instagram webview https://developers.facebook.com/community/threads/320013549791141/ | |
| /Object Not Found Matching Id:\d+, MethodName:simulateEvent/, // unactionable error from CEFSharp, a .NET library that embeds chromium in .NET apps | |
| /^Java exception was raised during method invocation$/, // error from Facebook Mobile browser (https://github.com/getsentry/sentry-javascript/issues/15065) | |
| ]; |
From my event, I see two:
- Error invoking postMessage: Java exception was raised during method invocation
- Error invoking postMessage: Java object is gone
It fails to match.
Steps to Reproduce
Go to packages/core/test/lib/integrations/eventFilters.test.ts and add the two strings above as tests.
Expected Result
Both dropped, as #15430 intended.
Actual Result
Alerts are still arriving for what should be ignored by default.
Additional Context
No response
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsNo status
Activity
linear-code commentedon Aug 28, 2026
JS-3469
msonnb commentedon Aug 28, 2026
Hey @Jiralite, thanks for reporting! We'll take a look.
fix(core): Match wrapped Facebook Mobile browser errors in `DEFAULT_I…