From e16db525cabd67da0bf6934d95a34a0d2a49db00 Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 11 Oct 2026 03:18:41 +0800 Subject: [PATCH] gui tests: group-duplicate doesn't count WebKit's ResizeObserver loop notice as a page error (#1542) webkit de failed in the full GUI suite, and 1 in 5 runs alone, with errors == ['ResizeObserver loop completed with undelivered notifications.']. Traced with every ResizeObserver callback logged per frame: as the Routing page first lays out, the view's scrollbar comes and goes within one frame (#rt 362 -> 352 -> 362). routing.js's width marks (byWidth) and the stage observer are told twice, past the loop's depth. WebKit reports that as a page error; Chromium doesn't. The round is delivered on the next frame and nothing is painted wrong. This is the same notice 75aa03e1a ruled on for purpose-filter, and the test now ignores that one message with the reason beside it. The cause in the app, which 89 other Routing tests could also hit, is filed as #1542. Run: group-duplicate.test.cjs alone, 5 times in WebKit (25/25) and once in Chromium (5/5). --- internal/gui/tests/group-duplicate.test.cjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/gui/tests/group-duplicate.test.cjs b/internal/gui/tests/group-duplicate.test.cjs index b1b244c72..aaa38a5ec 100644 --- a/internal/gui/tests/group-duplicate.test.cjs +++ b/internal/gui/tests/group-duplicate.test.cjs @@ -82,7 +82,12 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", }); page.setDefaultTimeout(5000); const errors = [], posts = []; - page.on("pageerror", (e) => errors.push(e.message)); + // WebKit reports a ResizeObserver round left to the next frame as a page + // error; Chromium doesn't. As the page first lays out, the view's + // scrollbar comes and goes in one frame (#rt 362 -> 352 -> 362), so the + // width marks and the stage are told twice, past the loop's depth. The + // round is delivered on the next frame and nothing is painted wrong. + page.on("pageerror", (e) => { if (!/^ResizeObserver loop completed with undelivered notifications/.test(e.message)) errors.push(e.message); }); await page.route("**/*", serve(lang, posts)); await page.goto("http://magpie.test/?view=routing"); await page.locator(".rt-groups > .rt-group").nth(1).waitFor();