From 08ce292a095ae7a12f27b0fde29f81b798f01da6 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 19:59:20 +0000 Subject: [PATCH] Ignore Firebase IndexedDB errors when site data is deleted When the browser deletes the site data while the page runs (seen on iOS), Firebase's own IndexedDB reads fail. Firebase handles that, but leaves some rejections unhandled: its heartbeat store skips tx.done when the read fails, and the idb promise rejects unobserved. Sentry reported them as "Database deleted by request of the user" and "The database connection is closing". Our code does not use IndexedDB. --- src/app.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app.tsx b/src/app.tsx index c47d500c..ea577533 100755 --- a/src/app.tsx +++ b/src/app.tsx @@ -44,6 +44,14 @@ Sentry.init({ // The dev server (`npm start`, also used by the Cypress runs in CI) // must not report: its errors would eat the reserved Sentry volume enabled: !__DEV__, + // When the browser deletes the site data while the page runs (seen on + // iOS), Firebase's own IndexedDB reads fail. Firebase copes with it, + // but leaves some of these rejections unhandled. Our code does not use + // IndexedDB itself. + ignoreErrors: [ + /Database deleted by request of the user/, + /The database connection is closing/, + ], // Our DPA rules out personal data in Sentry. Sentry v11 collects user // info (incl. IP address), cookies, headers and bodies by default, so // switch every data collection category off explicitly.