Changeset 248150 in webkit


Ignore:
Timestamp:
Aug 2, 2019 1:56:47 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[SOUP] WebSockets: use SOUP_WEBSOCKET_CLOSE_NO_STATUS when closing with no status
https://bugs.webkit.org/show_bug.cgi?id=200338

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2019-08-02
Reviewed by Alex Christensen.

Source/WebKit:

  • NetworkProcess/soup/WebSocketTaskSoup.cpp:

(WebKit::WebSocketTask::close):

LayoutTests:

Remove failure expectation for http/tests/websocket/tests/hybi/client-close.html

  • platform/gtk/TestExpectations:
  • platform/wpe/TestExpectations:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r248148 r248150  
     12019-08-02  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [SOUP] WebSockets: use SOUP_WEBSOCKET_CLOSE_NO_STATUS when closing with no status
     4        https://bugs.webkit.org/show_bug.cgi?id=200338
     5
     6        Reviewed by Alex Christensen.
     7
     8        Remove failure expectation for http/tests/websocket/tests/hybi/client-close.html
     9
     10        * platform/gtk/TestExpectations:
     11        * platform/wpe/TestExpectations:
     12
    1132019-08-01  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r248102 r248150  
    11801180webkit.org/b/200165 imported/w3c/web-platform-tests/websockets/cookies/007.html [ Failure ]
    11811181
    1182 webkit.org/b/200338 http/tests/websocket/tests/hybi/client-close.html [ Failure ]
    1183 
    11841182#////////////////////////////////////////////////////////////////////////////////////////
    11851183# End of Expected failures.
  • trunk/LayoutTests/platform/wpe/TestExpectations

    r248102 r248150  
    488488webkit.org/b/200165 imported/w3c/web-platform-tests/websockets/cookies/002.html [ Failure ]
    489489webkit.org/b/200165 imported/w3c/web-platform-tests/websockets/cookies/007.html [ Failure ]
    490 
    491 webkit.org/b/200338 http/tests/websocket/tests/hybi/client-close.html [ Failure ]
    492490
    493491#////////////////////////////////////////////////////////////////////////////////////////
  • trunk/Source/WebKit/ChangeLog

    r248144 r248150  
     12019-08-02  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [SOUP] WebSockets: use SOUP_WEBSOCKET_CLOSE_NO_STATUS when closing with no status
     4        https://bugs.webkit.org/show_bug.cgi?id=200338
     5
     6        Reviewed by Alex Christensen.
     7
     8        * NetworkProcess/soup/WebSocketTaskSoup.cpp:
     9        (WebKit::WebSocketTask::close):
     10
    1112019-08-01  Alex Christensen  <achristensen@webkit.org>
    212
  • trunk/Source/WebKit/NetworkProcess/soup/WebSocketTaskSoup.cpp

    r248102 r248150  
    3030#include "NetworkSocketChannel.h"
    3131#include <WebCore/HTTPParsers.h>
     32#include <WebCore/WebSocketChannel.h>
    3233#include <wtf/glib/GUniquePtr.h>
    3334#include <wtf/text/StringBuilder.h>
     
    194195    }
    195196
     197#if SOUP_CHECK_VERSION(2, 67, 90)
     198    if (code == WebCore::WebSocketChannel::CloseEventCodeNotSpecified)
     199        code = SOUP_WEBSOCKET_CLOSE_NO_STATUS;
     200#endif
     201
    196202    if (soup_websocket_connection_get_state(m_connection.get()) == SOUP_WEBSOCKET_STATE_OPEN)
    197203        soup_websocket_connection_close(m_connection.get(), code, reason.utf8().data());
Note: See TracChangeset for help on using the changeset viewer.