[Webkit-unassigned] [Bug 266999] resize-observer/contain-instrinsic-size-should-not-leak-nodes.html is flaky failure recently

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 3 04:11:59 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=266999

--- Comment #1 from Fujii Hironori <Hironori.Fujii at sony.com> ---
This is reproducible with WinCairo Release on my PC.

> python .\Tools\Scripts\run-webkit-tests --release --no-retry --iter=1000 -f --exit-after-n-f=1 resize-observer/contain-instrinsic-size-should-not-leak-nodes.html

But, applying the following patch works around the problem.

diff --git a/LayoutTests/resize-observer/contain-instrinsic-size-should-not-leak-nodes.html b/LayoutTests/resize-observer/contain-instrinsic-size-should-not-leak-nodes.html
index d894254ce8e1..001cbc0cf3de 100644
--- a/LayoutTests/resize-observer/contain-instrinsic-size-should-not-leak-nodes.html
+++ b/LayoutTests/resize-observer/contain-instrinsic-size-should-not-leak-nodes.html
@@ -62,6 +62,7 @@ promise_test(async function () {
     await nextRendering();
     removeNodes();
     await nextRendering();
+    await new Promise(resolve => { setTimeout(resolve, 1); });
     gc();
     await nextRendering();
     assert_equals(internals.referencingNodeCount(document) < initialNodeCount + CISCount * 0.8, true, 'More than 20% of nodes should be collected');
@@ -75,6 +76,7 @@ promise_test(async function () {
     await nextRendering();
     removeNodes();
     await nextRendering();
+    await new Promise(resolve => { setTimeout(resolve, 1); });
     gc();
     await nextRendering();
     assert_equals(internals.referencingNodeCount(document) < initialNodeCount + CISCount * 0.8, true, 'More than 20% of nodes should be collected');

It recalls me another gc test which is also worked around by delaying gc (but#214673 comment#5).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240103/49ad95c2/attachment.htm>


More information about the webkit-unassigned mailing list