Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(964)

Unified Diff: content/child/websocket_bridge.cc

Issue 2102993002: Fix WebSocket to set first party for cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/websocket_bridge.cc
diff --git a/content/child/websocket_bridge.cc b/content/child/websocket_bridge.cc
index 7cfff1ad50a942960024e79ac8d98377e363642d..c9f4696a3c0f497e074245b621dfa6a75ae44d3a 100644
--- a/content/child/websocket_bridge.cc
+++ b/content/child/websocket_bridge.cc
@@ -206,6 +206,7 @@ void WebSocketBridge::DidStartClosingHandshake() {
void WebSocketBridge::connect(const WebURL& url,
const WebVector<WebString>& protocols,
const WebSecurityOrigin& origin,
+ const WebURL& first_party_for_cookies,
WebSocketHandleClient* client) {
DCHECK_EQ(kInvalidChannelId, channel_id_);
WebSocketDispatcher* dispatcher =
@@ -222,7 +223,8 @@ void WebSocketBridge::connect(const WebURL& url,
<< origin.toString().utf8() << ")";
ChildThreadImpl::current()->Send(new WebSocketHostMsg_AddChannelRequest(
- channel_id_, url, protocols_to_pass, origin, render_frame_id_));
+ channel_id_, url, protocols_to_pass, origin, first_party_for_cookies,
+ render_frame_id_));
}
void WebSocketBridge::send(bool fin,

Powered by Google App Engine
This is Rietveld 408576698