mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-02 03:20:24 +08:00
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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user