From fef3d858449ddbcffdbef2d8e37872709fc2f3e5 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 29 Nov 2026 22:11:14 +0000 Subject: [PATCH] web: do not report the browser's ResizeObserver loop notice as a page error (a Wayland app's new size resizing its window raised it as a toast, or a fatal error during boot) --- web/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/index.html b/web/index.html index a970db3..8c3ee40 100644 --- a/web/index.html +++ b/web/index.html @@ -159,6 +159,9 @@ "<" + t.tagName.toLowerCase() + "> load error (404, network or MIME type)", t.tagName === "SCRIPT"); return; } + // Not a failure: a ResizeObserver callback changed a size an outer observer watches (a Wayland app's + // new size resizing its window, wayland/host.ts), and the browser delivers that one next frame instead. + if (!ev.error && /^ResizeObserver loop/.test(ev.message || "")) return; // Scripts a browser or an extension injects (Brave's wallet touching window.ethereum, say) throw here too: // drop an error that names no script of the page's origin (a blob: URL of it, or wasm), so it cannot fail the boot. if (location.origin !== "null") { -- knotmirror 0.0.1