Title: [271940] trunk
Revision
271940
Author
[email protected]
Date
2021-01-27 02:57:21 -0800 (Wed, 27 Jan 2021)

Log Message

[MacOS] Enable NSURLSession WebSocket code path in WebKitTestRunner
https://bugs.webkit.org/show_bug.cgi?id=220973

Reviewed by Darin Adler.

Source/WebKit:

Disable a debug assert unti it get fixed below.

* NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(-[WKNetworkSessionDelegate URLSession:webSocketTask:didCloseWithCode:reason:]):

Tools:

Enable NSURLSession WebSocket code path in MacOS.

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetPreferencesToConsistentValues):

LayoutTests:

Add platform specific expectations.
The differences are mostly due to different handling in case of server-side closure of the web socket connection (see rdar://problem/73613227).

* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-worker-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-comp-bit-onoff-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-set-bfinal-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/client-close-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/send-and-receive-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/server-close-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/interleaved-fragments-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/pong-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybuffer-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybufferview-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-onmessage-origin-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-empty-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-onmessage-origin-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/unicode-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/websocket-cookie-overwrite-behavior-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybuffer-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybufferview-expected.txt: Added.
* platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-blob-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.worker-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-65K-data.any-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-data.any-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any.worker-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.worker-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/constructor/009-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/cookies/third-party-cookie-accepted.https-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-arraybuffer-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-blob-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-getting-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-large-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-unicode-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/008-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/009-expected.txt: Added.
* platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/opening-handshake/003-sets-origin.worker-expected.txt: Added.
* platform/mac/TestExpectations:

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (271939 => 271940)


--- trunk/LayoutTests/ChangeLog	2021-01-27 09:07:36 UTC (rev 271939)
+++ trunk/LayoutTests/ChangeLog	2021-01-27 10:57:21 UTC (rev 271940)
@@ -1,3 +1,65 @@
+2021-01-27  Youenn Fablet  <[email protected]>
+
+        [MacOS] Enable NSURLSession WebSocket code path in WebKitTestRunner
+        https://bugs.webkit.org/show_bug.cgi?id=220973
+
+        Reviewed by Darin Adler.
+
+        Add platform specific expectations.
+        The differences are mostly due to different handling in case of server-side closure of the web socket connection (see rdar://problem/73613227).
+
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-worker-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-comp-bit-onoff-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-set-bfinal-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/client-close-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/send-and-receive-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/server-close-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/interleaved-fragments-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/pong-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybuffer-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybufferview-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-onmessage-origin-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-empty-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-onmessage-origin-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/unicode-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/websocket-cookie-overwrite-behavior-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybuffer-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybufferview-expected.txt: Added.
+        * platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-blob-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.worker-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-65K-data.any-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-data.any-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any.worker-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.worker-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/constructor/009-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/cookies/third-party-cookie-accepted.https-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-arraybuffer-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-blob-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-getting-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-large-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-unicode-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/008-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/009-expected.txt: Added.
+        * platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/opening-handshake/003-sets-origin.worker-expected.txt: Added.
+        * platform/mac/TestExpectations:
+
 2021-01-27  Andy Estes  <[email protected]>
 
         [Mac] MediaSampleCursor::stepInOrderedMap can hang when stepping to the end of a track that hasn't been fully parsed

Modified: trunk/LayoutTests/platform/mac/TestExpectations (271939 => 271940)


--- trunk/LayoutTests/platform/mac/TestExpectations	2021-01-27 09:07:36 UTC (rev 271939)
+++ trunk/LayoutTests/platform/mac/TestExpectations	2021-01-27 10:57:21 UTC (rev 271940)
@@ -642,6 +642,7 @@
 webkit.org/b/131715 transitions/cancel-transition.html [ Pass Failure ]
 
 webkit.org/b/89153 http/tests/websocket/tests/hybi/workers/close.html [ Pass Failure ]
+[ BigSur+ ] http/tests/websocket/tests/hybi/bad-handshake-crash.html [ Timeout ]
 
 # <rdar://problem/16696298>
 webkit.org/b/131886 webgl/1.0.3/conformance/textures/texture-size-limit.html [ Pass Failure ]

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-2-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,12 @@
+WebSocket: Test client-initiated close with 1000.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected
+Closed
+PASS receivedMessage is undefined.
+FAIL closeEvent.reason should be close_frame[:2]='\x88\x82'. Was .
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/client-close-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,13 @@
+WebSocket: Test client-initiated close. After WebSocket.close() any message from server must be discarded by WebSocket stack according to the new WebSocket API. See http://webkit.org/b/85934.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected
+Closed
+PASS receivedMessage is undefined.
+FAIL closeEvent.reason should be close_frame[:2]='\x88\x80'. Was .
+PASS closeEvent.wasClean is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-and-server-script-exception-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,12 @@
+Test how closing a connection triggers an exception in the python web socket server script or not
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS ws on master document is ready.
+PASS insert a iframe, where open ws called 'socket1'
+PASS 'socket1' is sent to the server. unload the iframe. expect receiving 'socket1' on ws...
+PASS closedSocket is "Closed without exception"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,82 @@
+Test CloseEvent code and reason property.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+ws.onclose() was called.
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is codeAbnormalClosure
+PASS closeEvent.reason is emptyString
+WebSocketTest.onopen() was called with testId = 0.
+WebSocketTest.onclose() was called with testId = 0.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1005
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1005
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 1.
+WebSocketTest.onclose() was called with testId = 1.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is false
+PASS closeEvent.code is 1006
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 2.
+WebSocketTest.onclose() was called with testId = 2.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1000
+PASS closeEvent.reason is 'ok'
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+PASS closeEvent.code is 1000
+PASS closeEvent.reason is 'ok'
+WebSocketTest.onopen() was called with testId = 3.
+WebSocketTest.onclose() was called with testId = 3.
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1005.
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1005.
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 4.
+WebSocketTest.onclose() was called with testId = 4.
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1005.
+PASS closeEvent.reason is ''
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1005.
+PASS closeEvent.reason is ''
+WebSocketTest.onopen() was called with testId = 5.
+WebSocketTest.onclose() was called with testId = 5.
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1015.
+FAIL closeEvent.reason should be . Was baz.
+PASS typeof closeEvent.wasClean is 'boolean'
+FAIL closeEvent.wasClean should be false. Was true.
+FAIL closeEvent.code should be 1006. Was 1015.
+FAIL closeEvent.reason should be . Was baz.
+WebSocketTest.onopen() was called with testId = 6.
+WebSocketTest.onclose() was called with testId = 6.
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+FAIL closeEvent.code should be 65535. Was 1005.
+FAIL closeEvent.reason should be good bye. Was .
+PASS typeof closeEvent.wasClean is 'boolean'
+PASS closeEvent.wasClean is true
+FAIL closeEvent.code should be 65535. Was 1005.
+FAIL closeEvent.reason should be good bye. Was .
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: onopen
+CONSOLE MESSAGE: onmessage reply sent
+CONSOLE MESSAGE: onclose
+This should not be hidden.

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-worker-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-worker-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/contentextensions/display-none-worker-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,5 @@
+CONSOLE MESSAGE: worker onopen
+CONSOLE MESSAGE: worker onmessage reply sent
+CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:8880/websocket/tests/hybi/contentextensions/resources/echo' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+CONSOLE MESSAGE: FAIL worker onerror
+This should not be hidden.

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-comp-bit-onoff-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-comp-bit-onoff-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-comp-bit-onoff-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,20 @@
+Test compression enabled/disabled frame receiving.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Sending message: "Hello"
+PASS event.data is 'Hello'
+Sending message: "DisableCompression"
+PASS event.data is 'DisableCompression'
+Sending message: "World"
+PASS event.data is 'World'
+Sending message: "EnableCompression"
+PASS event.data is 'EnableCompression'
+Sending message: "Goodbye"
+PASS event.data is 'Goodbye'
+onclose() was called.
+FAIL closeEvent.wasClean should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-set-bfinal-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-set-bfinal-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/deflate-frame-set-bfinal-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,16 @@
+Test receiving compressed frames with BFINAL = 1.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Sending message: "Hello"
+PASS event.data is 'Hello'
+Sending message: "World"
+PASS event.data is 'World'
+Sending message: "Goodbye"
+PASS event.data is 'Goodbye'
+onclose() was called.
+FAIL closeEvent.wasClean should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,12 @@
+Handshake should fail when the first line does not end with CRLF.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected
+Timed out (state = 1)
+FAIL connected should be false. Was true.
+PASS wsOrigin is undefined.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,12 @@
+Connection should fail immediately, rather than succeeding or staying in limbo until timeout, if a null byte is received in the status header.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected
+PASS timedOut is false
+FAIL connected should be false. Was true.
+PASS wsOrigin is undefined.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,12 @@
+Test http version parsing and validation. HTTP version 1.1 and above should be accepted for WebSockets.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+FAIL The following URL should have been allowed to be opened: ws://localhost:8880/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1?1.11
+FAIL The following URL should have been allowed to be opened: ws://localhost:8880/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1?11.0
+FAIL The following URL should have been allowed to be opened: ws://localhost:8880/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1?001.01
+FAIL At least one test failed.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/client-close-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/client-close-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/client-close-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,16 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://127.0.0.1:8880/websocket/tests/hybi/inspector/echo' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+Tests WebSockets connection closed by the client.
+
+
+== Running test suite: WebSocket.ClientClose
+-- Running test case: WebSocket.ClientClose
+PASS: WebSocketResource should be created.
+PASS: WebSocketResource should be a WebSocket type.
+PASS: WebSocketResource should be in a Connecting state.
+PASS: WebSocketResource previous state should be Connecting.
+PASS: WebSocketResource state should change to Open.
+PASS: WebSocketResource should be in a Open state.
+PASS: WebSocketResource previous state should be Open.
+PASS: WebSocketResource state should change to Closed.
+PASS: WebSocketResource should be in a Closed state.
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/send-and-receive-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/send-and-receive-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/send-and-receive-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,23 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://127.0.0.1:8880/websocket/tests/hybi/inspector/echo' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+Tests sending and receiving WebSocket messages.
+
+
+== Running test suite: WebSocket.SendAndReceive
+-- Running test case: SendAndReceive
+PASS: Resource size should be 33 bytes.
+PASS: Frame data should be 'Hello World! Привет Мир!'
+PASS: Frame should be text.
+PASS: Frame should be outgoing.
+PASS: Message is walltime.
+PASS: Resource size should double.
+PASS: Frame data should be 'Hello World! Привет Мир!'
+PASS: Frame should be text.
+PASS: Frame should be incoming.
+PASS: Frame walltime should be greater than the previous one.
+PASS: Frame should close connection.
+PASS: Frame should be outgoing.
+PASS: Frame walltime should be greater than the previous one.
+PASS: Frame should close connection.
+PASS: Frame should be incoming.
+PASS: Frame walltime should be greater than the previous one.
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/server-close-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/server-close-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/inspector/server-close-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,15 @@
+Tests WebSockets connection closed by the server.
+
+
+== Running test suite: WebSocket.ServerClose
+-- Running test case: WebSocket.ServerClose
+PASS: WebSocketResource should be created.
+PASS: WebSocketResource should be a WebSocket type.
+PASS: WebSocketResource should be in a Connecting state.
+PASS: WebSocketResource previous state should be Connecting.
+PASS: WebSocketResource state should change to Open.
+PASS: WebSocketResource should be in a Open state.
+PASS: WebSocketResource previous state should be Open.
+PASS: WebSocketResource state should change to Closed.
+PASS: WebSocketResource should be in a Closed state.
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/interleaved-fragments-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/interleaved-fragments-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/interleaved-fragments-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,11 @@
+Test whether WebSocket rejects interleaved fragmented frames.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+onopen() was called.
+FAIL onmessage() was called. (message = "This message ")
+PASS closeEvent.wasClean is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,24 @@
+Test whether WebSocket aborts the connection when it receives an unexpected encoding length frame.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Case 126_125: Test started.
+onopen() was called.
+onclose() was called.
+PASS closeEvent.wasClean is false
+Case 126_0: Test started.
+onopen() was called.
+onclose() was called.
+FAIL closeEvent.wasClean should be false. Was true.
+Case 127_65535: Test started.
+onopen() was called.
+onclose() was called.
+PASS closeEvent.wasClean is false
+Case 127_0: Test started.
+onopen() was called.
+onclose() was called.
+FAIL closeEvent.wasClean should be false. Was true.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/pong-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/pong-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/pong-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,13 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:8880/websocket/tests/hybi/pong' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+Test whether WebSocket correctly responds to a ping message sent from the server.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+onopen() was called.
+onmessage() was called. (message = "PASS")
+PASS message is "PASS"
+FAIL closeEvent.wasClean should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybuffer-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybuffer-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybuffer-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,13 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://127.0.0.1:8880/websocket/tests/hybi/check-binary-messages' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+WebSocket: Send ArrayBuffers.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS PASS: Message #0.
+PASS PASS: Message #1.
+PASS PASS: Message #2.
+FAIL closeEvent.wasClean should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybufferview-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybufferview-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-arraybufferview-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,13 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://127.0.0.1:8880/websocket/tests/hybi/check-binary-messages' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+WebSocket: Send ArrayBufferViews.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS PASS: Message #0.
+PASS PASS: Message #1.
+PASS PASS: Message #2.
+FAIL closeEvent.wasClean should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,11 @@
+WebSocket: Send Blobs.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS PASS: Message #0.
+PASS PASS: Message #1.
+PASS closeEvent.wasClean is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-onmessage-origin-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-onmessage-origin-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-blob-onmessage-origin-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,16 @@
+Web Socket message event origin attribute test (Blob message)
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS PASS: Message #0.
+PASS origin is "ws://127.0.0.1:8880"
+PASS PASS: Message #1.
+PASS origin is "ws://127.0.0.1:8880"
+PASS PASS: Message #2.
+PASS origin is "ws://127.0.0.1:8880"
+PASS closeEvent.wasClean is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-empty-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-empty-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-empty-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,13 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://127.0.0.1:8880/websocket/tests/hybi/echo' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+WebSocket: Calling send() without arguments should raise SyntaxError.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS ws.send() threw exception TypeError: Not enough arguments.
+FAIL closeEvent.wasClean should be true. Was false.
+PASS receivedMessages.length is 1
+PASS receivedMessages[0] is "Goodbye"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,13 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:8880/websocket/tests/hybi/send' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+Web Socket send test
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected.
+PASS data is FIRST_MESSAGE_TO_SEND
+PASS data is SECOND_MESSAGE_TO_SEND
+Closed.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-onmessage-origin-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-onmessage-origin-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/send-onmessage-origin-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,16 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:8880/websocket/tests/hybi/send' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+Web Socket message event origin attribute test (String message)
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Connected.
+PASS data is firstMessageToSend
+PASS origin is "ws://localhost:8880"
+PASS data is secondMessageToSend
+PASS origin is "ws://localhost:8880"
+Closed.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/unicode-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/unicode-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/unicode-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,13 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:8880/websocket/tests/hybi/unicode' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+Web Socket unicode message test
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+Connected.
+Send UNICODE_HELLO.
+PASS data is UNICODE_GOODBYE
+Closed.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/websocket-cookie-overwrite-behavior-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/websocket-cookie-overwrite-behavior-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/websocket-cookie-overwrite-behavior-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,21 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://127.0.0.1:8880/websocket/tests/hybi/cookie?set' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 96 - No message available on STREAM)
+CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:8880/websocket/tests/hybi/cookie?set' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 96 - No message available on STREAM)
+CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:8880/websocket/tests/hybi/cookie?set' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 96 - No message available on STREAM)
+Tests WebSocket Set-Cookie overwriting behavior with respect to a document cookie.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Setting third-party cookie 'foo' through cross-origin WebSocket handshake and checking that it doesn't write first-party cookies.
+PASS cookieValue is ""
+
+Opening localhost third-party iframe to check its cookies.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
+
+--------
+Frame: '<!--frame1-->'
+--------
+Cookies are: setAsFirstParty = value foo = bar

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,69 @@
+Test CloseEvent code and reason property in Worker.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+ws.onclose() was called.
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is codeAbnormalClosure
+PASS PASS: worker: event.reason is emptyString
+WebSocketTest.onopen() was called with testId = 0.
+WebSocketTest.onclose() was called with testId = 0.
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1005
+PASS PASS: worker: event.reason is
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1005
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 1.
+WebSocketTest.onclose() was called with testId = 1.
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+PASS PASS: worker: event.wasClean is false
+PASS PASS: worker: event.code is 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 2.
+WebSocketTest.onclose() was called with testId = 2.
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1000
+PASS PASS: worker: event.reason is ok
+PASS PASS: worker: event.wasClean is true
+PASS PASS: worker: event.code is 1000
+PASS PASS: worker: event.reason is ok
+WebSocketTest.onopen() was called with testId = 3.
+WebSocketTest.onclose() was called with testId = 3.
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+PASS PASS: worker: event.reason is
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 4.
+WebSocketTest.onclose() was called with testId = 4.
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+PASS PASS: worker: event.reason is
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+PASS PASS: worker: event.reason is
+WebSocketTest.onopen() was called with testId = 5.
+WebSocketTest.onclose() was called with testId = 5.
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+FAIL FAIL: worker: event.reason is not
+FAIL FAIL: worker: event.wasClean is not false
+FAIL FAIL: worker: event.code is not 1006
+FAIL FAIL: worker: event.reason is not
+WebSocketTest.onopen() was called with testId = 6.
+WebSocketTest.onclose() was called with testId = 6.
+PASS PASS: worker: event.wasClean is true
+FAIL FAIL: worker: event.code is not 65535
+FAIL FAIL: worker: event.reason is not good bye
+PASS PASS: worker: event.wasClean is true
+FAIL FAIL: worker: event.code is not 65535
+FAIL FAIL: worker: event.reason is not good bye
+DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybuffer-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybuffer-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybuffer-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,14 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://127.0.0.1:8880/websocket/tests/hybi/workers/resources/check-binary-messages' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+WebSocket: Send ArrayBuffers in Web Workers.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS PASS: Message #0.
+PASS PASS: Message #1.
+PASS PASS: Message #2.
+FAIL FAIL: closeEvent.wasClean should be true, but was: false
+DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybufferview-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybufferview-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-arraybufferview-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,14 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://127.0.0.1:8880/websocket/tests/hybi/workers/resources/check-binary-messages' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+WebSocket: Send ArrayBufferViews in Web Workers.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS PASS: Message #0.
+PASS PASS: Message #1.
+PASS PASS: Message #2.
+FAIL FAIL: closeEvent.wasClean should be true, but was: false
+DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-blob-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-blob-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/http/tests/websocket/tests/hybi/workers/send-blob-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,14 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://127.0.0.1:8880/websocket/tests/hybi/workers/resources/check-binary-messages' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
+WebSocket: Send Blobs in Web Workers.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS PASS: Message #0.
+PASS PASS: Message #1.
+PASS PASS: Message #2.
+FAIL FAIL: closeEvent.wasClean should be true, but was: false
+DONE
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,6 @@
+
+Harness Error (TIMEOUT), message = null
+
+NOTRUN Create Secure WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get opened
+FAIL Create Secure WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get closed assert_true: WebSocket connection should be opened expected true got false
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.worker-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.worker-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.worker-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,6 @@
+
+Harness Error (TIMEOUT), message = null
+
+NOTRUN Create Secure WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get opened
+FAIL Create Secure WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get closed assert_true: WebSocket connection should be opened expected true got false
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-65K-data.any-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-65K-data.any-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-65K-data.any-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,5 @@
+
+PASS Send 65K data on a WebSocket -  Connection should be opened
+PASS Send 65K data on a WebSocket - Message should be received
+PASS Send 65K data on a WebSocket - Connection should be closed
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,5 @@
+
+PASS Send 65K binary data on a WebSocket - ArrayBuffer - Connection should be opened
+PASS Send 65K binary data on a WebSocket - ArrayBuffer - Message should be received
+PASS Send 65K binary data on a WebSocket - ArrayBuffer - Connection should be closed
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,5 @@
+
+PASS Send binary data on a WebSocket - ArrayBuffer - Connection should be opened
+PASS Send binary data on a WebSocket - ArrayBuffer - Message should be received
+PASS Send binary data on a WebSocket - ArrayBuffer - Connection should be closed
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-data.any-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-data.any-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-data.any-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,5 @@
+
+PASS Send data on a WebSocket - Connection should be opened
+PASS Send data on a WebSocket - Message should be received
+PASS Send data on a WebSocket - Connection should be closed
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,5 @@
+
+PASS Send (paired surrogates) data on a WebSocket - Connection should be opened
+PASS Send (paired surrogates) data on a WebSocket - Message should be received
+PASS Send (paired surrogates) data on a WebSocket - Connection should be closed
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+PASS HTTP basic authentication should work with WebSockets
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any.worker-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any.worker-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/basic-auth.any.worker-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+PASS HTTP basic authentication should work with WebSockets
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.worker-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.worker-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.worker-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+FAIL bufferedAmount should not be updated during a sync XHR assert_unreached: open should succeed Reached unreachable code
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/constructor/009-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/constructor/009-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/constructor/009-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+PASS WebSockets: protocol
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/cookies/third-party-cookie-accepted.https-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/cookies/third-party-cookie-accepted.https-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/cookies/third-party-cookie-accepted.https-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+FAIL Test that third-party cookies are accepted for WebSockets. promise_test: Unhandled rejection with value: "Unexpected error event"
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-arraybuffer-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-arraybuffer-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-arraybuffer-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+PASS WebSockets: bufferedAmount for ArrayBuffer
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-blob-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-blob-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-blob-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+PASS WebSockets: bufferedAmount for blob
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-getting-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-getting-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-getting-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+PASS WebSockets: bufferedAmount after send()ing
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-large-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-large-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-large-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+PASS WebSockets: bufferedAmount for 65K data
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-unicode-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-unicode-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-unicode-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+PASS WebSockets: bufferedAmount for unicode data
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/008-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/008-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/008-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+FAIL WebSockets: send() in onclose assert_unreached: Reached unreachable code
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/009-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/009-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/009-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+FAIL WebSockets: send('') assert_unreached: Reached unreachable code
+

Added: trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/opening-handshake/003-sets-origin.worker-expected.txt (0 => 271940)


--- trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/opening-handshake/003-sets-origin.worker-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur-wk2/imported/w3c/web-platform-tests/websockets/opening-handshake/003-sets-origin.worker-expected.txt	2021-01-27 10:57:21 UTC (rev 271940)
@@ -0,0 +1,3 @@
+
+PASS origin set in a Worker
+

Modified: trunk/Source/WebKit/ChangeLog (271939 => 271940)


--- trunk/Source/WebKit/ChangeLog	2021-01-27 09:07:36 UTC (rev 271939)
+++ trunk/Source/WebKit/ChangeLog	2021-01-27 10:57:21 UTC (rev 271940)
@@ -1,3 +1,15 @@
+2021-01-27  Youenn Fablet  <[email protected]>
+
+        [MacOS] Enable NSURLSession WebSocket code path in WebKitTestRunner
+        https://bugs.webkit.org/show_bug.cgi?id=220973
+
+        Reviewed by Darin Adler.
+
+        Disable a debug assert unti it get fixed below.
+
+        * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
+        (-[WKNetworkSessionDelegate URLSession:webSocketTask:didCloseWithCode:reason:]):
+
 2021-01-27  Andy Estes  <[email protected]>
 
         [Mac] MediaSampleCursor::stepInOrderedMap can hang when stepping to the end of a track that hasn't been fully parsed

Modified: trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm (271939 => 271940)


--- trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm	2021-01-27 09:07:36 UTC (rev 271939)
+++ trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm	2021-01-27 10:57:21 UTC (rev 271940)
@@ -1035,7 +1035,8 @@
 - (void)URLSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)task didCloseWithCode:(NSURLSessionWebSocketCloseCode)closeCode reason:(NSData *)reason
 {
     if (auto* webSocketTask = [self existingWebSocketTask:task]) {
-        ASSERT([reason isEqualToData:task.closeReason]);
+        // FIXME: We can re-enable ASSERT below once NSURLSession bug rdar://problem/72383646 is fixed.
+        // ASSERT([reason isEqualToData:task.closeReason]);
         ASSERT(closeCode == [task closeCode]);
         auto closeReason = adoptNS([[NSString alloc] initWithData:reason encoding:NSUTF8StringEncoding]);
         webSocketTask->didClose(closeCode, closeReason.get());

Modified: trunk/Tools/ChangeLog (271939 => 271940)


--- trunk/Tools/ChangeLog	2021-01-27 09:07:36 UTC (rev 271939)
+++ trunk/Tools/ChangeLog	2021-01-27 10:57:21 UTC (rev 271940)
@@ -1,3 +1,15 @@
+2021-01-27  Youenn Fablet  <[email protected]>
+
+        [MacOS] Enable NSURLSession WebSocket code path in WebKitTestRunner
+        https://bugs.webkit.org/show_bug.cgi?id=220973
+
+        Reviewed by Darin Adler.
+
+        Enable NSURLSession WebSocket code path in MacOS.
+
+        * WebKitTestRunner/TestController.cpp:
+        (WTR::TestController::resetPreferencesToConsistentValues):
+
 2021-01-27  Philippe Normand  <[email protected]> and Lauro Moura  <[email protected]>
 
         [Flatpak SDK] Flatpak 1.10 environment variable issues

Modified: trunk/Tools/WebKitTestRunner/TestController.cpp (271939 => 271940)


--- trunk/Tools/WebKitTestRunner/TestController.cpp	2021-01-27 09:07:36 UTC (rev 271939)
+++ trunk/Tools/WebKitTestRunner/TestController.cpp	2021-01-27 10:57:21 UTC (rev 271940)
@@ -901,7 +901,9 @@
     WKPreferencesSetHiddenPageDOMTimerThrottlingEnabled(preferences, false);
     WKPreferencesSetHiddenPageCSSAnimationSuspensionEnabled(preferences, false);
     WKPreferencesSetStorageBlockingPolicy(preferences, kWKAllowAllStorage); // FIXME: We should be testing the default.
+#if PLATFORM(IOS_FAMILY)
     WKPreferencesSetIsNSURLSessionWebSocketEnabled(preferences, false);
+#endif
     WKPreferencesSetWebRTCPlatformCodecsInGPUProcessEnabled(preferences, false);
     WKPreferencesSetFetchAPIKeepAliveEnabled(preferences, true);
     WKPreferencesSetMediaPreloadingEnabled(preferences, true);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to