<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>214673</bug_id>
          
          <creation_ts>2020-07-22 21:12:41 -0700</creation_ts>
          <short_desc>[Win10] js/weakref-finalizationregistry.html is frequently timing out</short_desc>
          <delta_ts>2023-11-23 12:56:44 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fujii</cc>
    
    <cc>keith_miller</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1674107</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-07-22 21:12:41 -0700</bug_when>
    <thetext>js/weakref-finalizationregistry.html has been frequently timing out on Win10 bots since it was added with r264617.

--- /home/buildbot/worker/win10-release-tests/build/layout-test-results/js/weakref-finalizationregistry-expected.txt
+++ /home/buildbot/worker/win10-release-tests/build/layout-test-results/js/weakref-finalizationregistry-actual.txt
@@ -1,4 +1,6 @@
+FAIL: Timed out waiting for notifyDone to be called
 PASS successfullyParsed is true
 
 TEST COMPLETE
+Error
 

https://results.webkit.org/?suite=layout-tests&amp;test=js%2Fweakref-finalizationregistry.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674108</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-07-22 21:13:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/65971901&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674109</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-07-22 21:15:51 -0700</bug_when>
    <thetext>Marked test as flaky in r264744</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1674111</commentid>
    <comment_count>3</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2020-07-22 21:21:11 -0700</bug_when>
    <thetext>Man, gc tests are a real nightmare...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994290</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-11-21 21:58:55 -0800</bug_when>
    <thetext>WinCairo Debug and Release tester are constantly timing out. GTK Debug is ramdomly timing out.
https://results.webkit.org/?suite=layout-tests&amp;test=js%2Fweakref-finalizationregistry.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994291</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-11-21 22:02:14 -0800</bug_when>
    <thetext>It&apos;s flaky timeout for WinCairo Debug on my PC.
But, it will pass constantly by applying this patch.

diff --git a/LayoutTests/js/script-tests/weakref-finalizationregistry.js b/LayoutTests/js/script-tests/weakref-finalizationregistry.js
index 130c6c81d4de..be85642f01f0 100644
--- a/LayoutTests/js/script-tests/weakref-finalizationregistry.js
+++ b/LayoutTests/js/script-tests/weakref-finalizationregistry.js
@@ -18,7 +18,7 @@ function turnEventLoop() {
         setTimeout(() =&gt; {
             gc();
             resolve();
-        }, 1);
+        }, 30);
     });
 }
 
Does GC thread need a time to collect?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994579</commentid>
    <comment_count>6</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-11-23 12:56:44 -0800</bug_when>
    <thetext>The commit message of 248952@main explains why it wait for 1ms.

&gt;    * js/script-tests/weakref-finalizationregistry.js:
&gt;    (turnEventLoop): Use a timeout of 1ms instead of 0ms so that
&gt;    the deferred work task that calls the JS FinalizationRegistry
&gt;    callback gets a chance to run before we continue on to the
&gt;    assertion that it was run.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>