<?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>308856</bug_id>
          
          <creation_ts>2026-02-27 16:23:57 -0800</creation_ts>
          <short_desc>[macOS debug] http/tests/websocket/tests/hybi/handshake-ok-with-legacy-websocket-response-headers.html is a flaky text failure.</short_desc>
          <delta_ts>2026-02-27 20:04:23 -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>New Bugs</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="Diego De La Toba">d_delatoba</reporter>
          <assigned_to name="Diego De La Toba">d_delatoba</assigned_to>
          <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>2185690</commentid>
    <comment_count>0</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-27 16:23:57 -0800</bug_when>
    <thetext>http/tests/websocket/tests/hybi/handshake-ok-with-legacy-websocket-response-headers.html is a flaky text failure on macOS debug.


HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fwebsocket%2Ftests%2Fhybi%2Fhandshake-ok-with-legacy-websocket-response-headers.html


TEXT DIFF:
--- /Volumes/Data/worker/Apple-Tahoe-Debug-AppleSilicon-WK2-Tests/build/layout-test-results/http/tests/websocket/tests/hybi/handshake-ok-with-legacy-websocket-response-headers-expected.txt
+++ /Volumes/Data/worker/Apple-Tahoe-Debug-AppleSilicon-WK2-Tests/build/layout-test-results/http/tests/websocket/tests/hybi/handshake-ok-with-legacy-websocket-response-headers-actual.txt
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: WebSocket connection to &apos;ws://localhost:8880/websocket/tests/hybi/handshake-ok-with-legacy-websocket-response-headers&apos; failed: The operation couldnâ€™t be completed. Socket is not connected
 Test whether WebSocket handshake is OK with legacy response headers &apos;WebSocket-Location&apos; and &apos;WebSocket-Origin&apos;.
 
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.


DIFF URL:
https://build.webkit.org/results/Apple-Tahoe-Debug-AppleSilicon-WK2-Tests/308364%40main%20(1062)/http/tests/websocket/tests/hybi/handshake-ok-with-legacy-websocket-response-headers-pretty-diff.html


REPRODUCTION:
Reproduced on macOS 26.2 arm64 debug with the following:

run-webkit-tests --no-build --no-retry --no-show-results --exit-after-n-failures=1 --expect-pass --iterations=1000 --force -f --debug http/tests/websocket/tests/hybi/handshake-ok-with-legacy-websocket-response-headers.html

I am going to mark expectations as pass fail while this pends investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185691</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-27 16:24:04 -0800</bug_when>
    <thetext>&lt;rdar://problem/171394530&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185692</commentid>
    <comment_count>2</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-27 16:26:52 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/59619</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185694</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-27 16:35:44 -0800</bug_when>
    <thetext>Test gardening commit 308373@main (b3c6044a99a7): &lt;https://commits.webkit.org/308373@main&gt;

Reviewed commits have been landed. Closing PR #59619 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185739</commentid>
    <comment_count>4</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-27 19:55:05 -0800</bug_when>
    <thetext>This test is flaky due to the websocket handler abruptly closing the connection after sending a handshake response which sends out a connection lost error. What appears to be happening is the test harness is sometimes receiving this error message and logging it as an error when the test did pass. Adjusting the actual WebSocket to close the connection more gracefully seems like a more robust solution and does resolve all flakes when testing locally. However, also adjusting the actual test to account for this could be another solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2185740</commentid>
    <comment_count>5</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-02-27 20:04:23 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/59632</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>