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

Issue 14071008: WebSocket object should fire error event when WebSocket server can't be connected. (Closed)

Created:
7 years, 8 months ago by Li Yin
Modified:
7 years, 8 months ago
CC:
blink-reviews, jamesr, abarth_chromum.org
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

WebSocket object should fire error event when WebSocket server can't be connected. The patch is migrated from https://bugs.webkit.org/show_bug.cgi?id=87336 BUG=128057 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148893

Patch Set 1 #

Total comments: 23

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Rebased because WebSocketChannel.cpp is renamed to MainThreadWebSocketChannel.cpp #

Patch Set 4 : Add WebSocketStreamError.cpp #

Patch Set 5 : Change copyright information in new file #

Patch Set 6 : Add new layouttests into TestExceptions because it depends on chromium side patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -64 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/websocket/tests/hybi/connect-error-by-no-websocket-server.html View 1 1 chunk +89 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/websocket/tests/hybi/connect-error-by-no-websocket-server-expected.txt View 1 chunk +18 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/websocket/tests/hybi/nocache.html View 1 1 chunk +0 lines, -4 lines 0 comments Download
A + LayoutTests/http/tests/websocket/tests/hybi/workers/connect-error-by-no-websocket-server.html View 2 chunks +2 lines, -2 lines 0 comments Download
A LayoutTests/http/tests/websocket/tests/hybi/workers/connect-error-by-no-websocket-server-expected.txt View 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/websocket/tests/hybi/workers/resources/connect-error-by-no-websocket-server.js View 1 1 chunk +97 lines, -0 lines 0 comments Download
M Source/Platform/chromium/public/WebSocketStreamError.h View 1 chunk +25 lines, -1 line 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + Source/core/platform/chromium/support/WebSocketStreamError.cpp View 1 2 3 4 3 chunks +20 lines, -23 lines 0 comments Download
M Source/core/platform/network/SocketStreamErrorBase.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/platform/network/SocketStreamErrorBase.cpp View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M Source/core/platform/network/chromium/SocketStreamError.h View 1 2 1 chunk +13 lines, -4 lines 0 comments Download
M Source/core/platform/network/chromium/SocketStreamHandle.cpp View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M Source/modules/websockets/MainThreadWebSocketChannel.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/websockets/MainThreadWebSocketChannel.cpp View 1 2 3 4 5 3 chunks +27 lines, -16 lines 0 comments Download

Messages

Total messages: 50 (0 generated)
Li Yin
7 years, 8 months ago (2013-04-15 02:43:14 UTC) #1
Li Yin
7 years, 8 months ago (2013-04-15 02:44:40 UTC) #2
Li Yin
From https://bugs.webkit.org/show_bug.cgi?id=87336#c37 Yuta thought it was okay in general, but it still lacks an official ...
7 years, 8 months ago (2013-04-15 02:51:59 UTC) #3
tkent
7 years, 8 months ago (2013-04-15 04:09:28 UTC) #4
tyoshino (SeeGerritForStatus)
On 2013/04/15 04:09:28, tkent wrote: I'll take a look at this too.
7 years, 8 months ago (2013-04-15 04:11:30 UTC) #5
tyoshino (SeeGerritForStatus)
I'll take time for this tomorrow, sorry. In addition to code review, we need to ...
7 years, 8 months ago (2013-04-15 14:16:43 UTC) #6
Li Yin
> Please take a look at this. I'll help you prepare for it. > https://sites.google.com/a/chromium.org/dev/blink?pli=1#launch-process ...
7 years, 8 months ago (2013-04-16 08:07:27 UTC) #7
tkent
On 2013/04/15 14:16:43, tyoshino wrote: > In addition to code review, we need to notify ...
7 years, 8 months ago (2013-04-16 12:29:29 UTC) #8
Li Yin
On 2013/04/16 12:29:29, tkent wrote: > This is a trivial change [1], and I'm not ...
7 years, 8 months ago (2013-04-17 00:41:46 UTC) #9
Li Yin
On 2013/04/15 14:16:43, tyoshino wrote: > LayoutTests/http/tests/websocket/tests/hybi/connect-error-by-no-websocket-server.html:4: > <script src="../../../../js-test-resources/js-test-pre.js"></script> > please remove ../../../.. I ...
7 years, 8 months ago (2013-04-17 07:39:01 UTC) #10
tyoshino (SeeGerritForStatus)
On 2013/04/17 07:39:01, Li Yin wrote: > On 2013/04/15 14:16:43, tyoshino wrote: > > > ...
7 years, 8 months ago (2013-04-17 08:32:23 UTC) #11
tyoshino (SeeGerritForStatus)
On 2013/04/17 00:41:46, Li Yin wrote: > On 2013/04/16 12:29:29, tkent wrote: > > This ...
7 years, 8 months ago (2013-04-17 08:34:34 UTC) #12
Li Yin
On 2013/04/17 08:32:23, tyoshino wrote: > On 2013/04/17 07:39:01, Li Yin wrote: > > On ...
7 years, 8 months ago (2013-04-17 12:40:50 UTC) #13
tyoshino (SeeGerritForStatus)
On 2013/04/17 12:40:50, Li Yin wrote: > On 2013/04/17 08:32:23, tyoshino wrote: > > On ...
7 years, 8 months ago (2013-04-17 13:50:01 UTC) #14
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/14071008/diff/1/Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp File Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp (right): https://codereview.chromium.org/14071008/diff/1/Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp#newcode37 Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp:37: #include "NotImplemented.h" please insert SocketStreamError.h here. It look includes ...
7 years, 8 months ago (2013-04-17 13:50:10 UTC) #15
tyoshino (SeeGerritForStatus)
On 2013/04/17 13:50:01, tyoshino wrote: > Ah, ok. It's convenient if they're relative. We can ...
7 years, 8 months ago (2013-04-18 01:41:44 UTC) #16
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/14071008/diff/1/LayoutTests/http/tests/websocket/tests/hybi/connect-error-by-no-websocket-server.html File LayoutTests/http/tests/websocket/tests/hybi/connect-error-by-no-websocket-server.html (right): https://codereview.chromium.org/14071008/diff/1/LayoutTests/http/tests/websocket/tests/hybi/connect-error-by-no-websocket-server.html#newcode1 LayoutTests/http/tests/websocket/tests/hybi/connect-error-by-no-websocket-server.html:1: <!DOCTYPE HTML> HTML -> html https://codereview.chromium.org/14071008/diff/1/LayoutTests/http/tests/websocket/tests/hybi/connect-error-by-no-websocket-server.html#newcode20 LayoutTests/http/tests/websocket/tests/hybi/connect-error-by-no-websocket-server.html:20: var url ...
7 years, 8 months ago (2013-04-18 02:01:12 UTC) #17
Li Yin
https://codereview.chromium.org/14071008/diff/1/Source/modules/websockets/WebSocketChannel.cpp File Source/modules/websockets/WebSocketChannel.cpp (left): https://codereview.chromium.org/14071008/diff/1/Source/modules/websockets/WebSocketChannel.cpp#oldcode335 Source/modules/websockets/WebSocketChannel.cpp:335: m_document->addConsoleMessage(NetworkMessageSource, ErrorMessageLevel, message); On 2013/04/17 13:50:10, tyoshino wrote: > ...
7 years, 8 months ago (2013-04-18 02:50:05 UTC) #18
Li Yin
On 2013/04/18 02:50:05, Li Yin wrote: > https://codereview.chromium.org/14071008/diff/1/Source/modules/websockets/WebSocketChannel.cpp > File Source/modules/websockets/WebSocketChannel.cpp (left): > > https://codereview.chromium.org/14071008/diff/1/Source/modules/websockets/WebSocketChannel.cpp#oldcode335 ...
7 years, 8 months ago (2013-04-18 03:25:26 UTC) #19
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/14071008/diff/1/Source/modules/websockets/WebSocketChannel.cpp File Source/modules/websockets/WebSocketChannel.cpp (left): https://codereview.chromium.org/14071008/diff/1/Source/modules/websockets/WebSocketChannel.cpp#oldcode335 Source/modules/websockets/WebSocketChannel.cpp:335: m_document->addConsoleMessage(NetworkMessageSource, ErrorMessageLevel, message); On 2013/04/18 02:50:05, Li Yin wrote: ...
7 years, 8 months ago (2013-04-18 03:28:16 UTC) #20
tyoshino (SeeGerritForStatus)
On 2013/04/18 03:25:26, Li Yin wrote: > On 2013/04/18 02:50:05, Li Yin wrote: > > ...
7 years, 8 months ago (2013-04-18 03:29:55 UTC) #21
tyoshino (SeeGerritForStatus)
On 2013/04/18 03:29:55, tyoshino wrote: > OK. Thanks for the data. As I replied, please ...
7 years, 8 months ago (2013-04-18 03:32:41 UTC) #22
Takashi Toyoshima
> > > > <script src="../../../../js-test-resources/js-test-pre.js"></script> > > > > please remove ../../../.. (snip) > ...
7 years, 8 months ago (2013-04-18 04:46:57 UTC) #23
tyoshino (SeeGerritForStatus)
I discussed with Takashi. You can leave it relative in this CL. Either way, we'll ...
7 years, 8 months ago (2013-04-18 06:39:58 UTC) #24
Li Yin
https://codereview.chromium.org/14071008/diff/1/Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp File Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp (right): https://codereview.chromium.org/14071008/diff/1/Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp#newcode159 Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp:159: m_handle->m_client->didFailSocketStream(m_handle, *(PassRefPtr<SocketStreamError>(err))); On 2013/04/17 13:50:10, tyoshino wrote: > i'm ...
7 years, 8 months ago (2013-04-18 07:03:03 UTC) #25
Li Yin
https://codereview.chromium.org/14071008/diff/28002/LayoutTests/http/tests/websocket/tests/hybi/nocache.html File LayoutTests/http/tests/websocket/tests/hybi/nocache.html (left): https://codereview.chromium.org/14071008/diff/28002/LayoutTests/http/tests/websocket/tests/hybi/nocache.html#oldcode31 LayoutTests/http/tests/websocket/tests/hybi/nocache.html:31: onerror event will be invoked, because WebSocket server aborts ...
7 years, 8 months ago (2013-04-18 08:14:50 UTC) #26
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/14071008/diff/1/Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp File Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp (right): https://codereview.chromium.org/14071008/diff/1/Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp#newcode159 Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp:159: m_handle->m_client->didFailSocketStream(m_handle, *(PassRefPtr<SocketStreamError>(err))); On 2013/04/18 07:03:03, Li Yin wrote: > ...
7 years, 8 months ago (2013-04-18 08:29:59 UTC) #27
Li Yin
On 2013/04/18 08:29:59, tyoshino wrote: > https://codereview.chromium.org/14071008/diff/1/Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp > Again, please never mind this comment. Sorry. ...
7 years, 8 months ago (2013-04-19 01:17:33 UTC) #28
tyoshino (SeeGerritForStatus)
On 2013/04/19 01:17:33, Li Yin wrote: > It doesn't matter. > And now do you ...
7 years, 8 months ago (2013-04-19 04:22:57 UTC) #29
tyoshino (SeeGerritForStatus)
Hi tkent, Could you please take a look at this CL again?
7 years, 8 months ago (2013-04-19 04:23:38 UTC) #30
tyoshino (SeeGerritForStatus)
On 2013/04/17 08:34:34, tyoshino wrote: > On 2013/04/17 00:41:46, Li Yin wrote: > > On ...
7 years, 8 months ago (2013-04-19 04:24:32 UTC) #31
Li Yin
On 2013/04/19 04:22:57, tyoshino wrote: > On 2013/04/19 01:17:33, Li Yin wrote: > > It ...
7 years, 8 months ago (2013-04-19 04:49:09 UTC) #32
Li Yin
On 2013/04/19 04:24:32, tyoshino wrote: > > Yes. I discussed this with Kent. It's ok ...
7 years, 8 months ago (2013-04-19 04:54:54 UTC) #33
tyoshino (SeeGerritForStatus)
On 2013/04/19 04:49:09, Li Yin wrote: > Please commit this patch before 10668018, because the ...
7 years, 8 months ago (2013-04-19 06:43:16 UTC) #34
Li Yin
On 2013/04/19 06:43:16, tyoshino wrote: > On 2013/04/19 04:49:09, Li Yin wrote: > > Please ...
7 years, 8 months ago (2013-04-19 07:25:25 UTC) #35
tyoshino (SeeGerritForStatus)
On 2013/04/19 07:25:25, Li Yin wrote: > The copyright information has been changed based on ...
7 years, 8 months ago (2013-04-19 14:35:06 UTC) #36
tkent
lgtm
7 years, 8 months ago (2013-04-23 03:19:03 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/14071008/45001
7 years, 8 months ago (2013-04-23 03:19:13 UTC) #38
commit-bot: I haz the power
Presubmit check for 14071008-45001 failed and returned exit status -2001. The presubmit check was hung. ...
7 years, 8 months ago (2013-04-23 03:25:23 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/14071008/45001
7 years, 8 months ago (2013-04-23 04:51:49 UTC) #40
commit-bot: I haz the power
Presubmit check for 14071008-45001 failed and returned exit status -2001. The presubmit check was hung. ...
7 years, 8 months ago (2013-04-23 04:57:54 UTC) #41
Li Yin
On 2013/04/23 03:19:03, tkent wrote: > lgtm Thanks for your review. It seems commit-bot can't ...
7 years, 8 months ago (2013-04-23 05:07:36 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/14071008/45001
7 years, 8 months ago (2013-04-23 05:52:12 UTC) #43
commit-bot: I haz the power
Presubmit check for 14071008-45001 failed and returned exit status -2001. The presubmit check was hung. ...
7 years, 8 months ago (2013-04-23 05:58:17 UTC) #44
tyoshino (SeeGerritForStatus)
Yes. will do
7 years, 8 months ago (2013-04-23 06:02:02 UTC) #45
tyoshino (SeeGerritForStatus)
Let me try breaking this into WebSocketStreamError addition CL and CL for the rest. onerror ...
7 years, 8 months ago (2013-04-23 07:31:00 UTC) #46
Li Yin
On 2013/04/23 07:31:00, tyoshino wrote: > Let me try breaking this into WebSocketStreamError addition CL ...
7 years, 8 months ago (2013-04-23 07:41:16 UTC) #47
tyoshino (SeeGerritForStatus)
On 2013/04/23 07:41:16, Li Yin wrote: > On 2013/04/23 07:31:00, tyoshino wrote: > > Let ...
7 years, 8 months ago (2013-04-23 07:42:45 UTC) #48
tyoshino (SeeGerritForStatus)
On 2013/04/23 07:42:45, tyoshino wrote: > On 2013/04/23 07:41:16, Li Yin wrote: > > On ...
7 years, 8 months ago (2013-04-23 08:42:01 UTC) #49
tyoshino (SeeGerritForStatus)
7 years, 8 months ago (2013-04-23 08:53:09 UTC) #50
Message was sent while issue was closed.
Committed patchset #6 manually as r148893 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698