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

Issue 14657008: Make websocket error messages look better at the devtools console. (Closed)

Created:
7 years, 7 months ago by yhirano
Modified:
7 years, 7 months ago
CC:
blink-reviews, Mike West
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make websocket error messages look better at the devtools console. Show the source file name and the line number for WebSockets in a WebWorker. Show "closed before connection is established" message as a warning, not an error. BUG=164546, 101875 R=tyoshino TEST=http/tests/websocket and some manual tests Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149841

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 14

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 12

Patch Set 7 : rebase #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 6

Patch Set 10 : rebase #

Patch Set 11 : #

Total comments: 10

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -85 lines) Patch
M LayoutTests/http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt View 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/http/tests/websocket/tests/hybi/workers/close-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/WebKit/chromium/src/WebSocketImpl.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M Source/modules/websockets/MainThreadWebSocketChannel.h View 1 2 3 4 5 6 7 8 9 10 7 chunks +12 lines, -3 lines 0 comments Download
M Source/modules/websockets/MainThreadWebSocketChannel.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 18 chunks +55 lines, -38 lines 0 comments Download
M Source/modules/websockets/WebSocket.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/websockets/WebSocketChannel.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +29 lines, -1 line 0 comments Download
M Source/modules/websockets/WorkerThreadableWebSocketChannel.h View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +24 lines, -9 lines 0 comments Download
M Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp View 1 2 3 4 5 6 7 8 12 chunks +44 lines, -24 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
yhirano
7 years, 7 months ago (2013-05-01 04:58:38 UTC) #1
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/14657008/diff/2001/Source/modules/websockets/MainThreadWebSocketChannel.h File Source/modules/websockets/MainThreadWebSocketChannel.h (right): https://codereview.chromium.org/14657008/diff/2001/Source/modules/websockets/MainThreadWebSocketChannel.h#newcode80 Source/modules/websockets/MainThreadWebSocketChannel.h:80: void fail(const String& reason) { fail(reason, ErrorMessageLevel); } how ...
7 years, 7 months ago (2013-05-01 08:03:23 UTC) #2
yhirano
tkent, can you review Source/WebKit code? https://codereview.chromium.org/14657008/diff/2001/Source/modules/websockets/MainThreadWebSocketChannel.h File Source/modules/websockets/MainThreadWebSocketChannel.h (right): https://codereview.chromium.org/14657008/diff/2001/Source/modules/websockets/MainThreadWebSocketChannel.h#newcode80 Source/modules/websockets/MainThreadWebSocketChannel.h:80: void fail(const String& ...
7 years, 7 months ago (2013-05-01 09:31:43 UTC) #3
tyoshino (SeeGerritForStatus)
LGTM https://codereview.chromium.org/14657008/diff/2001/Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp File Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp (right): https://codereview.chromium.org/14657008/diff/2001/Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp#newcode133 Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp:133: { On 2013/05/01 09:31:44, yhirano wrote: > On ...
7 years, 7 months ago (2013-05-01 11:41:52 UTC) #4
Use mkwst_at_chromium.org plz.
Interesting! Thanks for making an effort to improve console messages, it makes a big difference ...
7 years, 7 months ago (2013-05-01 14:55:02 UTC) #5
yhirano
mkwst: Thank you for your comments. Though your comments is helpful, this CL intends to ...
7 years, 7 months ago (2013-05-02 02:04:58 UTC) #6
yhirano
https://codereview.chromium.org/14657008/diff/17010/Source/modules/websockets/MainThreadWebSocketChannel.cpp File Source/modules/websockets/MainThreadWebSocketChannel.cpp (right): https://codereview.chromium.org/14657008/diff/17010/Source/modules/websockets/MainThreadWebSocketChannel.cpp#newcode233 Source/modules/websockets/MainThreadWebSocketChannel.cpp:233: RefPtr<ScriptCallStack> callStack = wrapper ? wrapper->callStack() : adoptRef<ScriptCallStack>(0); On ...
7 years, 7 months ago (2013-05-02 02:33:01 UTC) #7
Use mkwst_at_chromium.org plz.
On 2013/05/02 02:04:58, yhirano wrote: > mkwst: Thank you for your comments. > Though your ...
7 years, 7 months ago (2013-05-03 13:59:48 UTC) #8
tkent
https://codereview.chromium.org/14657008/diff/41001/Source/modules/websockets/MainThreadWebSocketChannel.cpp File Source/modules/websockets/MainThreadWebSocketChannel.cpp (right): https://codereview.chromium.org/14657008/diff/41001/Source/modules/websockets/MainThreadWebSocketChannel.cpp#newcode97 Source/modules/websockets/MainThreadWebSocketChannel.cpp:97: MainThreadWebSocketChannel::MainThreadWebSocketChannel(Document* document, WebSocketChannelClient* client, const ScriptCallFrame& callFrame) Can you ...
7 years, 7 months ago (2013-05-06 22:56:40 UTC) #9
yhirano
https://codereview.chromium.org/14657008/diff/41001/Source/modules/websockets/MainThreadWebSocketChannel.cpp File Source/modules/websockets/MainThreadWebSocketChannel.cpp (right): https://codereview.chromium.org/14657008/diff/41001/Source/modules/websockets/MainThreadWebSocketChannel.cpp#newcode97 Source/modules/websockets/MainThreadWebSocketChannel.cpp:97: MainThreadWebSocketChannel::MainThreadWebSocketChannel(Document* document, WebSocketChannelClient* client, const ScriptCallFrame& callFrame) On 2013/05/06 ...
7 years, 7 months ago (2013-05-07 01:08:08 UTC) #10
tkent
lgtm with some nits https://codereview.chromium.org/14657008/diff/51001/Source/modules/websockets/WebSocketChannel.h File Source/modules/websockets/WebSocketChannel.h (right): https://codereview.chromium.org/14657008/diff/51001/Source/modules/websockets/WebSocketChannel.h#newcode101 Source/modules/websockets/WebSocketChannel.h:101: // The MessageLevel parameter will ...
7 years, 7 months ago (2013-05-07 01:33:19 UTC) #11
yhirano
https://codereview.chromium.org/14657008/diff/51001/Source/modules/websockets/WebSocketChannel.h File Source/modules/websockets/WebSocketChannel.h (right): https://codereview.chromium.org/14657008/diff/51001/Source/modules/websockets/WebSocketChannel.h#newcode101 Source/modules/websockets/WebSocketChannel.h:101: // The MessageLevel parameter will be used for the ...
7 years, 7 months ago (2013-05-07 01:44:27 UTC) #12
tkent
lgtm
7 years, 7 months ago (2013-05-07 01:47:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/14657008/60001
7 years, 7 months ago (2013-05-07 01:47:56 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-07 02:01:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/14657008/55003
7 years, 7 months ago (2013-05-07 02:07:59 UTC) #16
commit-bot: I haz the power
7 years, 7 months ago (2013-05-07 02:52:14 UTC) #17
Message was sent while issue was closed.
Change committed as 149841

Powered by Google App Engine
This is Rietveld 408576698