<?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>289018</bug_id>
          
          <creation_ts>2025-03-03 15:50:01 -0800</creation_ts>
          <short_desc>REGRESSION(284785@main): [ iOS ] imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/back-204-205-download.html is a flaky failure.</short_desc>
          <delta_ts>2025-03-03 16:41:02 -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>Page Loading</component>
          <version>WebKit Nightly Build</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="Yasmin Karimi">y_karimi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>rbuis</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>2100072</commentid>
    <comment_count>0</comment_count>
    <who name="Yasmin Karimi">y_karimi</who>
    <bug_when>2025-03-03 15:50:01 -0800</bug_when>
    <thetext>imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/back-204-205-download.html

This test is a flaky failure (very consistent though) on iOS.

HISTORY:

https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fnavigation-api%2Fnavigation-methods%2Freturn-value%2Fback-204-205-download.html

TEXT DIFF:

@@ -1,6 +1,6 @@
 
 
-FAIL back() promises to 204s never settle assert_unreached: onunload should not be called Reached unreachable code
+PASS back() promises to 204s never settle
 FAIL back() promises to 205s never settle assert_unreached: onunload should not be called Reached unreachable code
 PASS back() promises to Content-Disposition: attachment responses never settle

DIFF URL:

https://build.webkit.org/results/Apple-iPadOS-18-Simulator-Release-WK2-Tests/291510@main%20(485)/imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/back-204-205-download-pretty-diff.html

REPROUCIBILTY:

I was able to reproduce this issue on the iOS 18.2 simulator at ToT using the following command:

run-webkit-tests --ios-simulator --child-processes 2 -f imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/back-204-205-download.html --iterations 5

REGRESSION:

According to contextual information, the probable regression point is 284785@main. The code paths changed in this commit appear to be related to the observed regression test failure. 

This shows the regression more clearly:
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fnavigation-api%2Fnavigation-methods%2Freturn-value%2Fback-204-205-download.html&amp;platform=ios&amp;recent=false&amp;version_name=iOS%2018&amp;version_name=iOS%2017</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100073</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-03-03 15:50:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/146059202&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100080</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-03-03 16:03:37 -0800</bug_when>
    <thetext>Test gardening commit 291531@main (ed06a0166d23): &lt;https://commits.webkit.org/291531@main&gt;

Reviewed commits have been landed. Closing PR #41815 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>