<?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>215638</bug_id>
          
          <creation_ts>2020-08-18 20:57:05 -0700</creation_ts>
          <short_desc>REGRESSION(r265814) [GTK][WPE] Some socket/hybi failures</short_desc>
          <delta_ts>2020-08-23 13:42:43 -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>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=215759</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1681291</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-08-18 20:57:05 -0700</bug_when>
    <thetext>* http/tests/websocket/tests/hybi/invalid-continuation.html

--- /home/buildbot/wpe/wpe-linux-64-release-tests/build/layout-test-results/http/tests/websocket/tests/hybi/invalid-continuation-expected.txt
+++ /home/buildbot/wpe/wpe-linux-64-release-tests/build/layout-test-results/http/tests/websocket/tests/hybi/invalid-continuation-actual.txt
@@ -4,6 +4,7 @@
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
 
 onopen() was called.
+FAIL onmessage() was called. (message = &quot;Valid frame after closing should be disposed.&quot;)
 onclose() was called.
 PASS closeEvent.wasClean is false
 PASS successfullyParsed is true

And

* http/tests/websocket/tests/hybi/stop-on-resume-in-error-handler.html

--- /home/buildbot/wpe/wpe-linux-64-release-tests/build/layout-test-results/http/tests/websocket/tests/hybi/stop-on-resume-in-error-handler-expected.txt
+++ /home/buildbot/wpe/wpe-linux-64-release-tests/build/layout-test-results/http/tests/websocket/tests/hybi/stop-on-resume-in-error-handler-actual.txt
@@ -1,15 +1,3 @@
-Tests that WebSocket correctly handles being stopped in the error event handler upon restoring from PageCache.
+CONSOLE MESSAGE: Received invalid WebSocket response from the server
+FAIL: Timed out waiting for notifyDone to be called
 
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-pageshow - not from cache
-pagehide - entering cache
-pageshow - from cache
-PASS Page did enter and was restored from the page cache
-error event fired
-PASS wasRestoredFromPageCache is true
-PASS successfullyParsed is true
-
-TEST COMPLETE
-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1682255</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-08-23 12:59:30 -0700</bug_when>
    <thetext>(In reply to Lauro Moura from comment #0)
&gt; 
&gt; * http/tests/websocket/tests/hybi/stop-on-resume-in-error-handler.html
&gt; 
&gt; +CONSOLE MESSAGE: Received invalid WebSocket response from the server

This message is related to 0 being passed as closing code in WebSocketChannel::fail(reason) (invoked when suspending due to BackForwardCache).

Soup debug messages:

(process:48): libsoup-DEBUG: 12:35:49.116: Wrong closing code 0 received
(process:48): libsoup-DEBUG: 12:35:49.116: requesting close due to error
(process:48): libsoup-DEBUG: 12:35:49.116: sent frame
(process:48): libsoup-DEBUG: 12:35:49.116: waiting 5 seconds for peer to close io
(process:48): libsoup-DEBUG: 12:35:49.116: queued 8 frame of len 8
(process:48): libsoup-DEBUG: 12:35:49.117: stopping input source
(process:48): libsoup-DEBUG: 12:35:49.117: received control frame 8 with 2 payload
(process:48): libsoup-DEBUG: 12:35:49.117: stopping input source
(process:48): libsoup-DEBUG: 12:35:49.117: peer has closed socket
(process:48): libsoup-DEBUG: 12:35:49.117: closing io stream
(process:48): libsoup-DEBUG: 12:35:49.117: closed: completed io stream close
CONSOLE MESSAGE: WebSocket connection to &apos;ws://127.0.0.1:8880/websocket/tests/hybi/echo&apos; failed: WebSocket is closed due to suspension.
CONSOLE MESSAGE: WebSocket connection to &apos;ws://127.0.0.1:8880/websocket/tests/hybi/echo&apos; failed: Received invalid WebSocket response from the server</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>