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

Changeset 267693 in webkit


Ignore:
Timestamp:
Sep 28, 2020, 1:18:13 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r267620 - [SOUP] Slack.com is not working, new messages do not load due to WebSocket authentication failure issue
https://bugs.webkit.org/show_bug.cgi?id=149551

Reviewed by Michael Catanzaro.

The problem is that we are not including all the cookies in the web socket request. There are two cookies with
the Lax same-site policy set, that are not included for the websocket request.

  • Modules/websockets/ThreadableWebSocketChannel.cpp:

(WebCore::ThreadableWebSocketChannel::webSocketConnectRequest): Add same site information to WebSocket requests.

Location:
releases/WebKitGTK/webkit-2.30/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.30/Source/WebCore/ChangeLog

    r266916 r267693  
     12020-09-26  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [SOUP] Slack.com is not working, new messages do not load due to WebSocket authentication failure issue
     4        https://bugs.webkit.org/show_bug.cgi?id=149551
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        The problem is that we are not including all the cookies in the web socket request. There are two cookies with
     9        the Lax same-site policy set, that are not included for the websocket request.
     10
     11        * Modules/websockets/ThreadableWebSocketChannel.cpp:
     12        (WebCore::ThreadableWebSocketChannel::webSocketConnectRequest): Add same site information to WebSocket requests.
     13
    1142020-09-10  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • releases/WebKitGTK/webkit-2.30/Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp

    r259392 r267693  
    3434#include "ContentRuleListResults.h"
    3535#include "Document.h"
     36#include "FrameLoader.h"
    3637#include "HTTPHeaderValues.h"
    3738#include "Page.h"
     
    116117    request.setFirstPartyForCookies(document.firstPartyForCookies());
    117118    request.setHTTPHeaderField(HTTPHeaderName::Origin, document.securityOrigin().toString());
     119    FrameLoader::addSameSiteInfoToRequestIfNeeded(request, &document);
    118120
    119121    // Add no-cache headers to avoid compatibility issue.
Note: See TracChangeset for help on using the changeset viewer.