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

Changeset 267620 in webkit


Ignore:
Timestamp:
Sep 26, 2020, 6:51:33 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

[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:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267617 r267620  
     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-25  Zalan Bujtas  <zalan@apple.com>
    215
  • trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp

    r266467 r267620  
    3434#include "ContentRuleListResults.h"
    3535#include "Document.h"
     36#include "FrameLoader.h"
    3637#include "HTTPHeaderValues.h"
    3738#include "Page.h"
     
    121122    request.setFirstPartyForCookies(document.firstPartyForCookies());
    122123    request.setHTTPHeaderField(HTTPHeaderName::Origin, document.securityOrigin().toString());
     124    FrameLoader::addSameSiteInfoToRequestIfNeeded(request, &document);
    123125
    124126    // Add no-cache headers to avoid compatibility issue.
Note: See TracChangeset for help on using the changeset viewer.