<?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>307385</bug_id>
          
          <creation_ts>2026-02-09 16:00:21 -0800</creation_ts>
          <short_desc>[MacOS] fast/events/onunload-not-on-body.html is a flaky text failure</short_desc>
          <delta_ts>2026-03-09 16:17:54 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>296199</dup_id>
          
          <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="Diego De La Toba">d_delatoba</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>rniwa</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>2179645</commentid>
    <comment_count>0</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-09 16:00:21 -0800</bug_when>
    <thetext>fast/events/onunload-not-on-body.html is a flaky text failure across all architectures and styles.


HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fevents%2Fonunload-not-on-body.html


TEXT DIFF:
--- /Volumes/Data/worker/Apple-Tahoe-Release-AppleSilicon-WK2-Tests/build/layout-test-results/fast/events/onunload-not-on-body-expected.txt
+++ /Volumes/Data/worker/Apple-Tahoe-Release-AppleSilicon-WK2-Tests/build/layout-test-results/fast/events/onunload-not-on-body-actual.txt
@@ -1,3 +1,3 @@
-frame &quot;&lt;!--frame3--&gt;&quot; - has 1 onunload handler(s)
+frame &quot;&lt;!--frame4--&gt;&quot; - has 1 onunload handler(s)
 CONSOLE MESSAGE: Use of window.alert is not allowed while unloading a page.
 you should only see one unload alert appear.


DIFF URL:
https://build.webkit.org/results/Apple-Tahoe-Release-AppleSilicon-WK2-Tests/307099%40main%20(1543)/fast/events/onunload-not-on-body-pretty-diff.html


REPRODUCTION:
I was able to reproduce this failure on macOS Tahoe ToT arm64 with the following:

run-webkit-tests --force --release --no-retry --iterations 1000 fast/events/onunload-not-on-body.html

I am going to mark expectations as pass fail while this pends investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179646</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-09 16:00:28 -0800</bug_when>
    <thetext>&lt;rdar://problem/170008549&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179651</commentid>
    <comment_count>2</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-09 16:06:40 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/58252</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179652</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-09 16:08:40 -0800</bug_when>
    <thetext>Test gardening commit 307119@main (8275904a69cf): &lt;https://commits.webkit.org/307119@main&gt;

Reviewed commits have been landed. Closing PR #58252 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179658</commentid>
    <comment_count>4</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-09 16:23:38 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/58254</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179660</commentid>
    <comment_count>5</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-09 16:24:59 -0800</bug_when>
    <thetext>Looks like the test is flaky because it relies on an auto-generated frame identifier (frame3 or frame4) &amp; this is causing the frame number to vary between runs. I’m going to push a patch that resolves this, please review (assuming this is NOT a webkit issue).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2188518</commentid>
    <comment_count>6</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2026-03-09 16:17:54 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 296199 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>