You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intermittent pass in /websockets/cookies/005.html #9772
▶ Unexpected subtest result in /websockets/cookies/005.html:
└ PASS [expected FAIL] WebSockets: setting HttpOnly cookies in ws response, checking ws request
I've taken a look at this test to see if it could be enabled again after the work on fixing the timeouts.
I have a few concerns about this test case and feel we should maybe change it a bit, but I'm assuming it is working for other browsers. What is the process for changing the functionality of a test case?
I'll break down my concerns about the test, hopefully some of it makes sense.
It attempts to circumvent the pywebsocket handshake process by writing directly to the stream in set-cookie_http_wsh.py. This has a side effect in that after you write your handshake response the connection is upgraded to a websocket but then pywebsocket sends its own handshake response down the channel which seems to be interpreted as a close but it's not really a valid websocket message. This can be solved by using the extra_headers list in pywebsockets but this will only work if you are not overwriting required headers.
If you fix the headers using the above extra_headers solution the test will still fail in servo. The problem is that the web_socket_transfer_data function in set-cookie_http_wsh.py is just returning straight away which tells pywebsocket to close the connection. In servo this will then trigger the script close event for the websocket that triggers an assert_unreached on the test. I imagine this is intermittent based on timing of thread execution. The ws.close() call in the test itself is a red-herring, the close is triggered by the server.
This test also identified a flaw in my PR #10382. I need to check and update the guard in both the incoming and outgoing threads as I've missed the case when the server starts the close and then the user script calls close, which also causes an extra close to be sent. I'll update it tomorrow.
As for updating the tests, for ones like this I like to modify them upstream in order to solicit feedback from people like zcorpan. Otherwise we area allowed to modify tests locally in Servo and the changes will be merged upstream automatically as part of our bidirectional synchronization process.
Activity
Vindictively disable all intermittent tests that failed servo#9787
Auto merge of #9804 - nox:vengeful-disabling, r=KiChjang
bobthekingofegypt commentedon Apr 4, 2016
cc @jdm
I've taken a look at this test to see if it could be enabled again after the work on fixing the timeouts.
I have a few concerns about this test case and feel we should maybe change it a bit, but I'm assuming it is working for other browsers. What is the process for changing the functionality of a test case?
I'll break down my concerns about the test, hopefully some of it makes sense.
It attempts to circumvent the pywebsocket handshake process by writing directly to the stream in set-cookie_http_wsh.py. This has a side effect in that after you write your handshake response the connection is upgraded to a websocket but then pywebsocket sends its own handshake response down the channel which seems to be interpreted as a close but it's not really a valid websocket message. This can be solved by using the extra_headers list in pywebsockets but this will only work if you are not overwriting required headers.
If you fix the headers using the above extra_headers solution the test will still fail in servo. The problem is that the web_socket_transfer_data function in set-cookie_http_wsh.py is just returning straight away which tells pywebsocket to close the connection. In servo this will then trigger the script close event for the websocket that triggers an assert_unreached on the test. I imagine this is intermittent based on timing of thread execution. The ws.close() call in the test itself is a red-herring, the close is triggered by the server.
This test also identified a flaw in my PR #10382. I need to check and update the guard in both the incoming and outgoing threads as I've missed the case when the server starts the close and then the user script calls close, which also causes an extra close to be sent. I'll update it tomorrow.
jdm commentedon Apr 4, 2016
Funny you should mention point 1, since I filed web-platform-tests/wpt#2625 a couple months ago about the same issue.
jdm commentedon Apr 4, 2016
As for updating the tests, for ones like this I like to modify them upstream in order to solicit feedback from people like zcorpan. Otherwise we area allowed to modify tests locally in Servo and the changes will be merged upstream automatically as part of our bidirectional synchronization process.
mrobinson commentedon May 23, 2025
This test is no longer disabled, so likely isn't intermittent any longer.