⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267655 in webkit


Ignore:
Timestamp:
Sep 27, 2020, 5:45:58 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

[SOUP] WebSocket: cookies set in request don't appear in the inspector
https://bugs.webkit.org/show_bug.cgi?id=217012

Reviewed by Michael Catanzaro.

Cookies are set by libsoup and we are notifying about the handshake being sent before the cookie header is added
to the request.

  • NetworkProcess/soup/WebSocketTaskSoup.cpp:

(WebKit::WebSocketTask::WebSocketTask): Connect to SoupMessage::starting to notify the web process the handshake
request has been sent.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r267621 r267655  
     12020-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [SOUP] WebSocket: cookies set in request don't appear in the inspector
     4        https://bugs.webkit.org/show_bug.cgi?id=217012
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Cookies are set by libsoup and we are notifying about the handshake being sent before the cookie header is added
     9        to the request.
     10
     11        * NetworkProcess/soup/WebSocketTaskSoup.cpp:
     12        (WebKit::WebSocketTask::WebSocketTask): Connect to SoupMessage::starting to notify the web process the handshake
     13        request has been sent.
     14
    1152020-09-26  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebKit/NetworkProcess/soup/WebSocketTaskSoup.cpp

    r265940 r267655  
    8181        }, this);
    8282
    83     WebCore::ResourceRequest request;
    84     request.updateFromSoupMessage(msg);
    85     m_channel.didSendHandshakeRequest(WTFMove(request));
     83    g_signal_connect(msg, "starting", G_CALLBACK(+[](SoupMessage* msg, WebSocketTask* task) {
     84        WebCore::ResourceRequest request;
     85        request.updateFromSoupMessage(msg);
     86        task->m_channel.didSendHandshakeRequest(WTFMove(request));
     87    }), this);
    8688}
    8789
Note: See TracChangeset for help on using the changeset viewer.