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

Issue 390773002: [WebSocket] Send a close frame when the renderer process is gone. (Closed)

Created:
6 years, 5 months ago by yhirano
Modified:
6 years, 4 months ago
Reviewers:
Johnny, Adam Rice, eroman, mmenke
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Project:
chromium
Visibility:
Public.

Description

[WebSocket] Send a close frame when the renderer process is gone. Renderer processes may die without clearing its |WebSocketBridge|s. It is helpful to send a close frame with code = 1001 in such a case. BUG=392534 R=ricea@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285557 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285884

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : Revert the last change #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : rebase #

Patch Set 12 : #

Total comments: 20

Patch Set 13 : #

Patch Set 14 : #

Total comments: 2

Patch Set 15 : #

Total comments: 2

Patch Set 16 : #

Total comments: 2

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -62 lines) Patch
M chrome/browser/net/websocket_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +64 lines, -25 lines 0 comments Download
M content/browser/renderer_host/websocket_dispatcher_host.cc View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/renderer_host/websocket_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +66 lines, -7 lines 0 comments Download
M content/browser/renderer_host/websocket_host.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/websocket_host.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M net/data/websocket/README View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -0 lines 0 comments Download
M net/data/websocket/connect_check.html View 1 2 3 4 5 7 1 chunk +2 lines, -11 lines 0 comments Download
A net/data/websocket/count-connection_wsh.py View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A net/data/websocket/count_connection.html View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download
A net/data/websocket/counted_connection.html View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download
M net/data/websocket/split_packet_check.html View 1 2 3 4 5 7 1 chunk +2 lines, -10 lines 0 comments Download
M net/data/websocket/websocket_shared_worker.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -9 lines 0 comments Download
M net/websockets/websocket_channel.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
yhirano
6 years, 5 months ago (2014-07-14 04:28:49 UTC) #1
Adam Rice
If you have time, could you add a browser test for this case? As far ...
6 years, 5 months ago (2014-07-14 05:41:50 UTC) #2
yhirano
Added a test. PATL. https://codereview.chromium.org/390773002/diff/20001/content/browser/renderer_host/websocket_dispatcher_host.cc File content/browser/renderer_host/websocket_dispatcher_host.cc (right): https://codereview.chromium.org/390773002/diff/20001/content/browser/renderer_host/websocket_dispatcher_host.cc#newcode7 content/browser/renderer_host/websocket_dispatcher_host.cc:7: #include <hash_map> On 2014/07/14 05:41:50, ...
6 years, 5 months ago (2014-07-14 09:27:20 UTC) #3
Adam Rice
https://codereview.chromium.org/390773002/diff/40001/chrome/browser/net/websocket_browsertest.cc File chrome/browser/net/websocket_browsertest.cc (right): https://codereview.chromium.org/390773002/diff/40001/chrome/browser/net/websocket_browsertest.cc#newcode93 chrome/browser/net/websocket_browsertest.cc:93: // Launch a secure WebSocket server. Remove the word ...
6 years, 5 months ago (2014-07-14 10:17:20 UTC) #4
Adam Rice
https://codereview.chromium.org/390773002/diff/40001/chrome/browser/net/websocket_browsertest.cc File chrome/browser/net/websocket_browsertest.cc (right): https://codereview.chromium.org/390773002/diff/40001/chrome/browser/net/websocket_browsertest.cc#newcode110 chrome/browser/net/websocket_browsertest.cc:110: NavigateToHTTP("connect.html"); The name "connect.html" is too generic. How about ...
6 years, 5 months ago (2014-07-14 10:31:31 UTC) #5
yhirano
https://codereview.chromium.org/390773002/diff/40001/chrome/browser/net/websocket_browsertest.cc File chrome/browser/net/websocket_browsertest.cc (right): https://codereview.chromium.org/390773002/diff/40001/chrome/browser/net/websocket_browsertest.cc#newcode93 chrome/browser/net/websocket_browsertest.cc:93: // Launch a secure WebSocket server. On 2014/07/14 10:17:20, ...
6 years, 5 months ago (2014-07-14 11:24:36 UTC) #6
Adam Rice
https://codereview.chromium.org/390773002/diff/80001/net/data/websocket/connect_check.html File net/data/websocket/connect_check.html (right): https://codereview.chromium.org/390773002/diff/80001/net/data/websocket/connect_check.html#newcode6 net/data/websocket/connect_check.html:6: var scheme = location.protocol.replace('http', 'ws'); Clever! But I think ...
6 years, 5 months ago (2014-07-14 12:12:15 UTC) #7
yhirano
https://codereview.chromium.org/390773002/diff/80001/net/data/websocket/connect_check.html File net/data/websocket/connect_check.html (right): https://codereview.chromium.org/390773002/diff/80001/net/data/websocket/connect_check.html#newcode6 net/data/websocket/connect_check.html:6: var scheme = location.protocol.replace('http', 'ws'); On 2014/07/14 12:12:14, Adam ...
6 years, 5 months ago (2014-07-15 01:50:03 UTC) #8
Adam Rice
lgtm
6 years, 5 months ago (2014-07-15 06:03:30 UTC) #9
yhirano
+jgraettinger for net/data. +eroman for chrome/browser/net.
6 years, 5 months ago (2014-07-15 07:23:17 UTC) #10
Johnny
net/data lgtm https://codereview.chromium.org/390773002/diff/100001/net/data/websocket/README File net/data/websocket/README (right): https://codereview.chromium.org/390773002/diff/100001/net/data/websocket/README#newcode22 net/data/websocket/README:22: - counted-connection.html : A page that creates ...
6 years, 5 months ago (2014-07-15 18:00:54 UTC) #11
yhirano
https://codereview.chromium.org/390773002/diff/100001/net/data/websocket/README File net/data/websocket/README (right): https://codereview.chromium.org/390773002/diff/100001/net/data/websocket/README#newcode22 net/data/websocket/README:22: - counted-connection.html : A page that creates a WebSocket ...
6 years, 5 months ago (2014-07-16 02:11:46 UTC) #12
yhirano
eroman: ping
6 years, 5 months ago (2014-07-18 09:29:05 UTC) #13
yhirano
eroman: ping
6 years, 5 months ago (2014-07-23 08:45:41 UTC) #14
yhirano
+mmenke for chrome/browser/net
6 years, 5 months ago (2014-07-24 13:38:54 UTC) #15
mmenke
Just a couple style nits, LGTM, deferring to other reviewers on actual content of the ...
6 years, 5 months ago (2014-07-24 14:34:32 UTC) #16
yhirano
https://codereview.chromium.org/390773002/diff/210001/chrome/browser/net/websocket_browsertest.cc File chrome/browser/net/websocket_browsertest.cc (right): https://codereview.chromium.org/390773002/diff/210001/chrome/browser/net/websocket_browsertest.cc#newcode20 chrome/browser/net/websocket_browsertest.cc:20: : ws_server_(net::SpawnedTestServer::TYPE_WS, On 2014/07/24 14:34:32, mmenke wrote: > This ...
6 years, 5 months ago (2014-07-25 01:49:00 UTC) #17
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 5 months ago (2014-07-25 01:49:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/390773002/250001
6 years, 5 months ago (2014-07-25 02:26:00 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-25 07:17:09 UTC) #20
commit-bot: I haz the power
Change committed as 285557
6 years, 5 months ago (2014-07-25 10:32:52 UTC) #21
Vladislav Kaznacheev
A revert of this CL has been created in https://codereview.chromium.org/416333004/ by kaznacheev@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-25 11:55:34 UTC) #22
Adam Rice
https://codereview.chromium.org/390773002/diff/250001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc File content/browser/renderer_host/websocket_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/390773002/diff/250001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc#newcode64 content/browser/renderer_host/websocket_dispatcher_host_unittest.cc:64: virtual ~WebSocketDispatcherHostTest() {} We need to add dispatcher_host_ = ...
6 years, 5 months ago (2014-07-25 12:20:17 UTC) #23
yhirano1
reopen
6 years, 5 months ago (2014-07-25 13:16:01 UTC) #24
yhirano
ricea@, PTAL. https://codereview.chromium.org/390773002/diff/250001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc File content/browser/renderer_host/websocket_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/390773002/diff/250001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc#newcode64 content/browser/renderer_host/websocket_dispatcher_host_unittest.cc:64: virtual ~WebSocketDispatcherHostTest() {} On 2014/07/25 12:20:16, Adam ...
6 years, 4 months ago (2014-07-28 03:54:06 UTC) #25
Adam Rice
https://codereview.chromium.org/390773002/diff/270001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc File content/browser/renderer_host/websocket_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/390773002/diff/270001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc#newcode66 content/browser/renderer_host/websocket_dispatcher_host_unittest.cc:66: on_destruction_ = true; This doesn't seem safe to me. ...
6 years, 4 months ago (2014-07-28 04:29:22 UTC) #26
yhirano
https://codereview.chromium.org/390773002/diff/270001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc File content/browser/renderer_host/websocket_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/390773002/diff/270001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc#newcode66 content/browser/renderer_host/websocket_dispatcher_host_unittest.cc:66: on_destruction_ = true; On 2014/07/28 04:29:22, Adam Rice wrote: ...
6 years, 4 months ago (2014-07-28 05:08:53 UTC) #27
Adam Rice
https://codereview.chromium.org/390773002/diff/290001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc File content/browser/renderer_host/websocket_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/390773002/diff/290001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc#newcode53 content/browser/renderer_host/websocket_dispatcher_host_unittest.cc:53: public base::SupportsWeakPtr<WebSocketDispatcherHostTest> { You don't need to use base::SupportsWeakPtr ...
6 years, 4 months ago (2014-07-28 07:04:48 UTC) #28
yhirano
https://codereview.chromium.org/390773002/diff/290001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc File content/browser/renderer_host/websocket_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/390773002/diff/290001/content/browser/renderer_host/websocket_dispatcher_host_unittest.cc#newcode53 content/browser/renderer_host/websocket_dispatcher_host_unittest.cc:53: public base::SupportsWeakPtr<WebSocketDispatcherHostTest> { On 2014/07/28 07:04:48, Adam Rice wrote: ...
6 years, 4 months ago (2014-07-28 07:12:48 UTC) #29
Adam Rice
lgtm
6 years, 4 months ago (2014-07-28 07:15:08 UTC) #30
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 4 months ago (2014-07-28 07:22:10 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/390773002/300001
6 years, 4 months ago (2014-07-28 07:22:47 UTC) #32
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 10:01:12 UTC) #33
Message was sent while issue was closed.
Change committed as 285884

Powered by Google App Engine
This is Rietveld 408576698