|
Make the WebSocket fail messages meaningful
Currently the source file and the line number of fail messages to be shown is <origin url> and 1 respectively.
It is helpless for developers.
Fixed the behavior by:
1) If the error is occurred in the JS context, show the source file and the line number of the calling statement.
2) Otherwise, show the source file and the line number where the Websocket object is created.
Note that we can't test 1) behavior by the LayoutTests because the completion of the source file and the line number is not done in DumpRenderTree.
This CL doesn't fix the problem for WebSocket objects in a WebWorker.
R=tyoshino
BUG= 164546
TEST=http/tests/websocket
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149148
Total comments: 13
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+73 lines, -55 lines) |
Patch |
 |
M |
LayoutTests/http/tests/inspector/web-socket-frame-error-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/bad-handshake-crash-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/broken-utf8-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/compressed-control-frame-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/deflate-frame-invalid-parameter-expected.txt
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/fragmented-control-frame-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-error-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-extensions-header-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-maxlength-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-mismatch-protocol-header-expected.txt
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-more-protocol-header-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-no-accept-header-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-no-connection-header-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-no-upgrade-header-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-prepended-null-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-wrong-accept-header-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/interleaved-fragments-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/invalid-continuation-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/invalid-encode-length-expected.txt
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/invalid-masked-frames-from-server-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/long-control-frame-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/long-invalid-header-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/reserved-bits-expected.txt
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/reserved-opcodes-expected.txt
|
View
|
|
1 chunk |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/send-file-blob-fail-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/websocket/tests/hybi/too-long-payload-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/modules/websockets/MainThreadWebSocketChannel.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/modules/websockets/MainThreadWebSocketChannel.cpp
|
View
|
1
2
3
4
|
4 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|