chore(web): ignore Instagram in-app browser window.webkit noise in Sentry
iOS Instagram/Meta in-app browsers inject their own JS that probes the WKWebView bridge (window.webkit.messageHandlers) and throws when absent. It surfaces via our global onerror but is not our code — pure noise that scales with Instagram ad traffic. Added to Sentry ignoreErrors. The existing issue (124551981) was muted in the Sentry UI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,13 @@ export async function initSentry() {
|
||||
"ResizeObserver loop limit exceeded",
|
||||
"ResizeObserver loop completed with undelivered notifications.",
|
||||
"Non-Error promise rejection captured",
|
||||
// Instagram/Meta in-app browsers inject their own JS that probes the iOS
|
||||
// WKWebView bridge; it throws when window.webkit is absent. Not our code —
|
||||
// pure noise that scales with Instagram ad traffic.
|
||||
"window.webkit.messageHandlers",
|
||||
"undefined is not an object (evaluating 'window.webkit",
|
||||
// iOS in-app browsers fail to start AudioContext without a user gesture.
|
||||
"Failed to start the audio device",
|
||||
],
|
||||
});
|
||||
initialized = true;
|
||||
|
||||
Reference in New Issue
Block a user