From 9500b8062ac7803af04c1bde13f131a2e7fec003 Mon Sep 17 00:00:00 2001 From: Eric Wagoner Date: Tue, 3 Nov 2026 17:17:02 -0500 Subject: [PATCH] Safari's masked extension frames stay out of Sentry Safari reports an extension's scripts as webkit-masked-url://hidden/, so the extension filter never matched them; WIZWAR-17 was one such failure. Co-Authored-By: Claude Opus 5.5 --- packages/web/src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web/src/main.ts b/packages/web/src/main.ts index 1f9306f..4727974 100644 --- a/packages/web/src/main.ts +++ b/packages/web/src/main.ts @@ -19,7 +19,8 @@ if (import.meta.env.VITE_SENTRY_DSN) { // Facebook's in-app browser injects its own scripts (iabjs://) and // reports their failures as ours when the page unloads. // Extensions run their own scripts in the page, and their failures are not ours. - denyUrls: [/^iabjs:\/\//, /^(chrome|moz|safari(-web)?)-extension:\/\//], + // Safari hides an extension's address behind webkit-masked-url. + denyUrls: [/^iabjs:\/\//, /^(chrome|moz|safari(-web)?)-extension:\/\//, /^webkit-masked-url:\/\//], ignoreErrors: ["Java object is gone"], beforeSend: (event) => JSON.parse(scrub(JSON.stringify(event))), beforeBreadcrumb: (crumb) => JSON.parse(scrub(JSON.stringify(crumb))),