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

Issue 2397393002: Provide child/frame IDs for WebSocket handshake request (Closed)

Created:
4 years, 2 months ago by yhirano
Modified:
4 years, 1 month ago
CC:
chromium-reviews, jam, cbentzel+watch_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Provide child/frame IDs for WebSocket handshake request AndroidCookiePolicy needs the child ID and the frame ID of a WebSocket connection to determine if it allows the connection to attach third-party cookies. This CL provide the additional information to the WebSocket handshake net::URLRequest. BUG=634311 Committed: https://crrev.com/4a593833d44a457f177f99b2c907bd0f6ae397f7 Cr-Commit-Position: refs/heads/master@{#427109}

Patch Set 1 : fix #

Patch Set 2 : fix #

Total comments: 12

Patch Set 3 : fix #

Total comments: 6

Patch Set 4 : fix #

Patch Set 5 : fix #

Patch Set 6 : fix #

Patch Set 7 : fix #

Total comments: 7

Patch Set 8 : fix #

Patch Set 9 : fix #

Total comments: 4

Patch Set 10 : rebase #

Patch Set 11 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -21 lines) Patch
M android_webview/browser/aw_cookie_access_policy.cc View 1 2 3 2 chunks +15 lines, -4 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java View 1 2 3 4 5 6 7 8 4 chunks +81 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/websockets/websocket_handshake_request_info_impl.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A content/browser/websockets/websocket_handshake_request_info_impl.cc View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
M content/browser/websockets/websocket_impl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/websockets/websocket_impl.cc View 1 2 4 chunks +14 lines, -5 lines 0 comments Download
M content/browser/websockets/websocket_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/websockets/websocket_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -3 lines 0 comments Download
M content/browser/websockets/websocket_manager_unittest.cc View 2 chunks +9 lines, -3 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/websocket_handshake_request_info.h View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java View 1 2 3 4 5 6 7 8 9 10 8 chunks +64 lines, -4 lines 0 comments Download
M net/websockets/websocket_channel.h View 2 chunks +4 lines, -0 lines 0 comments Download
M net/websockets/websocket_channel.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M net/websockets/websocket_channel_test.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M net/websockets/websocket_end_to_end_test.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M net/websockets/websocket_event_interface.h View 2 chunks +4 lines, -0 lines 0 comments Download
M net/websockets/websocket_handshake_stream_create_helper_test.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/websockets/websocket_stream.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M net/websockets/websocket_stream.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/websockets/websocket_stream_create_test_base.h View 2 chunks +2 lines, -0 lines 0 comments Download
M net/websockets/websocket_stream_create_test_base.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M net/websockets/websocket_stream_test.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 100 (69 generated)
yhirano
4 years, 2 months ago (2016-10-12 05:34:21 UTC) #28
Adam Rice
lgtm with nits. It's terrible that we have to do this. But I can't see ...
4 years, 2 months ago (2016-10-12 06:38:25 UTC) #31
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2397393002/diff/100001/content/browser/websockets/websocket_impl.cc File content/browser/websockets/websocket_impl.cc (right): https://codereview.chromium.org/2397393002/diff/100001/content/browser/websockets/websocket_impl.cc#newcode23 content/browser/websockets/websocket_impl.cc:23: #include "content/browser/loader/resource_request_info_impl.h" for what? https://codereview.chromium.org/2397393002/diff/100001/content/browser/websockets/websocket_impl.cc#newcode28 content/browser/websockets/websocket_impl.cc:28: #include "content/public/common/process_type.h" for ...
4 years, 2 months ago (2016-10-12 08:13:37 UTC) #34
yhirano
https://codereview.chromium.org/2397393002/diff/100001/android_webview/browser/aw_cookie_access_policy.cc File android_webview/browser/aw_cookie_access_policy.cc (right): https://codereview.chromium.org/2397393002/diff/100001/android_webview/browser/aw_cookie_access_policy.cc#newcode71 android_webview/browser/aw_cookie_access_policy.cc:71: const WebSocketHandshakeRequestInfo* websocketInfo = On 2016/10/12 06:38:25, Adam Rice ...
4 years, 2 months ago (2016-10-12 10:47:15 UTC) #37
tyoshino (SeeGerritForStatus)
lgtm
4 years, 2 months ago (2016-10-12 11:19:32 UTC) #38
yhirano
+jam@ for content/public and content/browser/BUILD.gn. +torne@ for android_webview.
4 years, 2 months ago (2016-10-12 11:22:00 UTC) #40
Torne
Is there a reasonable way to implement a test for this in WebView, to verify ...
4 years, 2 months ago (2016-10-12 12:16:30 UTC) #43
yhirano
> Is there a reasonable way to implement a test for this in WebView, to ...
4 years, 2 months ago (2016-10-12 12:36:56 UTC) #44
Torne
On 2016/10/12 12:36:56, yhirano wrote: > > Is there a reasonable way to implement a ...
4 years, 2 months ago (2016-10-12 12:40:08 UTC) #46
yhirano
On 2016/10/12 12:40:08, Torne wrote: > On 2016/10/12 12:36:56, yhirano wrote: > > > Is ...
4 years, 2 months ago (2016-10-12 12:44:00 UTC) #47
Torne
There's a Java instrumentation test org.chromium.android_webview.test.CookieManagerTest.testThirdPartyCookie() - that's probably what we'd want to extend I ...
4 years, 2 months ago (2016-10-12 12:48:53 UTC) #48
yhirano
On 2016/10/12 12:48:53, Torne wrote: > There's a Java instrumentation test > org.chromium.android_webview.test.CookieManagerTest.testThirdPartyCookie() - > ...
4 years, 2 months ago (2016-10-12 12:58:30 UTC) #49
timvolodine
On 2016/10/12 12:40:08, Torne wrote: > On 2016/10/12 12:36:56, yhirano wrote: > > > Is ...
4 years, 2 months ago (2016-10-12 15:04:18 UTC) #50
jam
lgtm with comments https://codereview.chromium.org/2397393002/diff/120001/content/public/browser/websocket_handshake_request_info.h File content/public/browser/websocket_handshake_request_info.h (right): https://codereview.chromium.org/2397393002/diff/120001/content/public/browser/websocket_handshake_request_info.h#newcode23 content/public/browser/websocket_handshake_request_info.h:23: // Returns the ID of the ...
4 years, 2 months ago (2016-10-12 15:59:29 UTC) #51
yhirano
https://codereview.chromium.org/2397393002/diff/120001/content/public/browser/websocket_handshake_request_info.h File content/public/browser/websocket_handshake_request_info.h (right): https://codereview.chromium.org/2397393002/diff/120001/content/public/browser/websocket_handshake_request_info.h#newcode23 content/public/browser/websocket_handshake_request_info.h:23: // Returns the ID of the renderrer frame where ...
4 years, 2 months ago (2016-10-13 05:55:18 UTC) #56
yhirano
I added two tests. +mef@ for net/test.
4 years, 2 months ago (2016-10-14 08:42:43 UTC) #66
Torne
Thanks for adding the test, it looks good, but it'd be nice not to have ...
4 years, 2 months ago (2016-10-14 09:59:25 UTC) #67
mef
https://codereview.chromium.org/2397393002/diff/200001/net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java File net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java (right): https://codereview.chromium.org/2397393002/diff/200001/net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java#newcode12 net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java:12: import org.apache.http.Header; According to https://bugs.chromium.org/p/chromium/issues/detail?id=488192 the use of org.apache.http ...
4 years, 2 months ago (2016-10-14 16:52:26 UTC) #69
jbudorick
https://codereview.chromium.org/2397393002/diff/200001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java File android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java (right): https://codereview.chromium.org/2397393002/diff/200001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java#newcode408 android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java:408: public void testThirdPartyCookieForWebSocketDisabledCase() throws Throwable { If possible, new ...
4 years, 2 months ago (2016-10-18 17:27:31 UTC) #74
yhirano
https://codereview.chromium.org/2397393002/diff/200001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java File android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java (right): https://codereview.chromium.org/2397393002/diff/200001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java#newcode406 android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java:406: @MediumTest On 2016/10/14 09:59:24, Torne wrote: > Can you ...
4 years, 2 months ago (2016-10-19 11:32:13 UTC) #79
yhirano
https://codereview.chromium.org/2397393002/diff/200001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java File android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java (right): https://codereview.chromium.org/2397393002/diff/200001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java#newcode408 android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java:408: public void testThirdPartyCookieForWebSocketDisabledCase() throws Throwable { On 2016/10/18 17:27:30, ...
4 years, 2 months ago (2016-10-19 14:45:00 UTC) #80
jbudorick
https://codereview.chromium.org/2397393002/diff/200001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java File android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java (right): https://codereview.chromium.org/2397393002/diff/200001/android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java#newcode408 android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java:408: public void testThirdPartyCookieForWebSocketDisabledCase() throws Throwable { On 2016/10/19 14:45:00, ...
4 years, 2 months ago (2016-10-19 15:40:40 UTC) #81
mef
https://codereview.chromium.org/2397393002/diff/240001/net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java File net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java (right): https://codereview.chromium.org/2397393002/diff/240001/net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java#newcode367 net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java:367: responseHeaders.add(Pair.create("Connection", "Upgrade")); If responseHeaders passed in are not null, ...
4 years, 2 months ago (2016-10-19 17:41:24 UTC) #82
yhirano
https://codereview.chromium.org/2397393002/diff/240001/net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java File net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java (right): https://codereview.chromium.org/2397393002/diff/240001/net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java#newcode367 net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java:367: responseHeaders.add(Pair.create("Connection", "Upgrade")); On 2016/10/19 17:41:24, mef wrote: > If ...
4 years, 2 months ago (2016-10-20 04:21:07 UTC) #89
Torne
LGTM, thanks for being patient with this (I was OOO last week).
4 years, 1 month ago (2016-10-24 12:04:39 UTC) #90
yhirano
mef@, are you OK with this change?
4 years, 1 month ago (2016-10-24 17:00:13 UTC) #91
mef
lgtm, sorry for the delay.
4 years, 1 month ago (2016-10-24 17:04:35 UTC) #92
yhirano
Thanks!
4 years, 1 month ago (2016-10-24 17:05:06 UTC) #93
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2397393002/280001
4 years, 1 month ago (2016-10-24 17:05:43 UTC) #96
commit-bot: I haz the power
Committed patchset #11 (id:280001)
4 years, 1 month ago (2016-10-24 18:58:44 UTC) #98
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 19:23:42 UTC) #100
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/4a593833d44a457f177f99b2c907bd0f6ae397f7
Cr-Commit-Position: refs/heads/master@{#427109}

Powered by Google App Engine
This is Rietveld 408576698