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)

This commit is contained in:
Pooya Parsa
2026-11-29 22:11:14 +00:00
parent 6bde669dbd
commit fef3d85844

View File

@@ -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") {