Changeset 269459 in webkit
- Timestamp:
- Nov 5, 2020 12:05:35 PM (21 months ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/tests/websocket/tests/hybi/url-parsing-expected.txt (modified) (2 diffs)
-
LayoutTests/http/tests/websocket/tests/hybi/url-parsing.html (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/websockets/WebSocket.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r269452 r269459 1 2020-11-05 Youenn Fablet <youenn@apple.com> 2 3 WebSocket constructor should not throw in case port is blocked 4 https://bugs.webkit.org/show_bug.cgi?id=218617 5 <rdar://problem/71080398> 6 7 Reviewed by Alex Christensen. 8 9 Removing no longer valid test, correct version covered by WPT test. 10 11 * http/tests/websocket/tests/hybi/url-parsing-expected.txt: 12 * http/tests/websocket/tests/hybi/url-parsing.html: 13 1 14 2020-11-05 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/LayoutTests/http/tests/websocket/tests/hybi/url-parsing-expected.txt
r259900 r269459 3 3 CONSOLE MESSAGE: Wrong url scheme for WebSocket http://127.0.0.1:8000/applet 4 4 CONSOLE MESSAGE: Wrong url scheme for WebSocket javascript:a 5 CONSOLE MESSAGE: WebSocket port 25 blocked6 5 CONSOLE MESSAGE: URL has fragment component ws://127.0.0.1/path# 7 6 CONSOLE MESSAGE: URL has fragment component ws://127.0.0.1/path#fragment … … 15 14 PASS new WebSocket("/applet") threw exception SyntaxError: The string did not match the expected pattern.. 16 15 PASS new WebSocket("javascript:a") threw exception SyntaxError: The string did not match the expected pattern.. 17 PASS new WebSocket("ws://127.0.0.1:25/") threw exception SecurityError: The operation is insecure..18 16 PASS (new WebSocket("ws://127.0.0.1:8880/a/../websocket/tests/hybi/simple")).URL is "ws://127.0.0.1:8880/websocket/tests/hybi/simple" 19 17 PASS (new WebSocket("ws://127.0.0.1:8880/websocket/tests/hybi/simple?")).URL is "ws://127.0.0.1:8880/websocket/tests/hybi/simple?" -
trunk/LayoutTests/http/tests/websocket/tests/hybi/url-parsing.html
r134221 r269459 25 25 shouldThrow('new WebSocket("javascript:a")'); 26 26 27 // UA is allowed to block access to some ports, which we do.28 shouldThrow('new WebSocket("ws://127.0.0.1:25/")');29 30 27 // Resolve the url string using the resolve a Web address algorithm. 31 28 // Use 127.0.0.1:8880 and existing ws handler to make sure we don't receive unexpected response (so no console message appears) -
trunk/LayoutTests/imported/w3c/ChangeLog
r269452 r269459 1 2020-11-05 Youenn Fablet <youenn@apple.com> 2 3 WebSocket constructor should not throw in case port is blocked 4 https://bugs.webkit.org/show_bug.cgi?id=218617 5 6 Reviewed by Alex Christensen. 7 8 * web-platform-tests/websockets/Create-blocked-port.any-expected.txt: 9 * web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt: 10 1 11 2020-11-05 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt
r269436 r269459 1 1 2 2 PASS Basic check 3 FAIL WebSocket blocked port test 1 The operation is insecure. 4 FAIL WebSocket blocked port test 7 The operation is insecure. 5 FAIL WebSocket blocked port test 9 The operation is insecure. 6 FAIL WebSocket blocked port test 11 The operation is insecure. 7 FAIL WebSocket blocked port test 13 The operation is insecure. 8 FAIL WebSocket blocked port test 15 The operation is insecure. 9 FAIL WebSocket blocked port test 17 The operation is insecure. 10 FAIL WebSocket blocked port test 19 The operation is insecure. 11 FAIL WebSocket blocked port test 20 The operation is insecure. 12 FAIL WebSocket blocked port test 21 The operation is insecure. 13 FAIL WebSocket blocked port test 22 The operation is insecure. 14 FAIL WebSocket blocked port test 23 The operation is insecure. 15 FAIL WebSocket blocked port test 25 The operation is insecure. 16 FAIL WebSocket blocked port test 37 The operation is insecure. 17 FAIL WebSocket blocked port test 42 The operation is insecure. 18 FAIL WebSocket blocked port test 43 The operation is insecure. 19 FAIL WebSocket blocked port test 53 The operation is insecure. 20 FAIL WebSocket blocked port test 77 The operation is insecure. 21 FAIL WebSocket blocked port test 79 The operation is insecure. 22 FAIL WebSocket blocked port test 87 The operation is insecure. 23 FAIL WebSocket blocked port test 95 The operation is insecure. 24 FAIL WebSocket blocked port test 101 The operation is insecure. 25 FAIL WebSocket blocked port test 102 The operation is insecure. 26 FAIL WebSocket blocked port test 103 The operation is insecure. 27 FAIL WebSocket blocked port test 104 The operation is insecure. 28 FAIL WebSocket blocked port test 109 The operation is insecure. 29 FAIL WebSocket blocked port test 110 The operation is insecure. 30 FAIL WebSocket blocked port test 111 The operation is insecure. 31 FAIL WebSocket blocked port test 113 The operation is insecure. 32 FAIL WebSocket blocked port test 115 The operation is insecure. 33 FAIL WebSocket blocked port test 117 The operation is insecure. 34 FAIL WebSocket blocked port test 119 The operation is insecure. 35 FAIL WebSocket blocked port test 123 The operation is insecure. 36 FAIL WebSocket blocked port test 135 The operation is insecure. 37 FAIL WebSocket blocked port test 139 The operation is insecure. 38 FAIL WebSocket blocked port test 143 The operation is insecure. 39 FAIL WebSocket blocked port test 179 The operation is insecure. 40 FAIL WebSocket blocked port test 389 The operation is insecure. 41 FAIL WebSocket blocked port test 427 The operation is insecure. 42 FAIL WebSocket blocked port test 465 The operation is insecure. 43 FAIL WebSocket blocked port test 512 The operation is insecure. 44 FAIL WebSocket blocked port test 513 The operation is insecure. 45 FAIL WebSocket blocked port test 514 The operation is insecure. 46 FAIL WebSocket blocked port test 515 The operation is insecure. 47 FAIL WebSocket blocked port test 526 The operation is insecure. 48 FAIL WebSocket blocked port test 530 The operation is insecure. 49 FAIL WebSocket blocked port test 531 The operation is insecure. 50 FAIL WebSocket blocked port test 532 The operation is insecure. 51 FAIL WebSocket blocked port test 540 The operation is insecure. 52 FAIL WebSocket blocked port test 548 The operation is insecure. 53 FAIL WebSocket blocked port test 556 The operation is insecure. 54 FAIL WebSocket blocked port test 563 The operation is insecure. 55 FAIL WebSocket blocked port test 587 The operation is insecure. 56 FAIL WebSocket blocked port test 601 The operation is insecure. 57 FAIL WebSocket blocked port test 636 The operation is insecure. 58 FAIL WebSocket blocked port test 993 The operation is insecure. 59 FAIL WebSocket blocked port test 995 The operation is insecure. 60 FAIL WebSocket blocked port test 2049 The operation is insecure. 61 FAIL WebSocket blocked port test 3659 The operation is insecure. 62 FAIL WebSocket blocked port test 4045 The operation is insecure. 63 FAIL WebSocket blocked port test 5060 The operation is insecure. 64 FAIL WebSocket blocked port test 5061 The operation is insecure. 65 FAIL WebSocket blocked port test 6000 The operation is insecure. 66 FAIL WebSocket blocked port test 6665 The operation is insecure. 67 FAIL WebSocket blocked port test 6666 The operation is insecure. 68 FAIL WebSocket blocked port test 6667 The operation is insecure. 69 FAIL WebSocket blocked port test 6668 The operation is insecure. 70 FAIL WebSocket blocked port test 6669 The operation is insecure. 71 FAIL WebSocket blocked port test 6697 The operation is insecure. 3 PASS WebSocket blocked port test 1 4 PASS WebSocket blocked port test 7 5 PASS WebSocket blocked port test 9 6 PASS WebSocket blocked port test 11 7 PASS WebSocket blocked port test 13 8 PASS WebSocket blocked port test 15 9 PASS WebSocket blocked port test 17 10 PASS WebSocket blocked port test 19 11 PASS WebSocket blocked port test 20 12 PASS WebSocket blocked port test 21 13 PASS WebSocket blocked port test 22 14 PASS WebSocket blocked port test 23 15 PASS WebSocket blocked port test 25 16 PASS WebSocket blocked port test 37 17 PASS WebSocket blocked port test 42 18 PASS WebSocket blocked port test 43 19 PASS WebSocket blocked port test 53 20 PASS WebSocket blocked port test 77 21 PASS WebSocket blocked port test 79 22 PASS WebSocket blocked port test 87 23 PASS WebSocket blocked port test 95 24 PASS WebSocket blocked port test 101 25 PASS WebSocket blocked port test 102 26 PASS WebSocket blocked port test 103 27 PASS WebSocket blocked port test 104 28 PASS WebSocket blocked port test 109 29 PASS WebSocket blocked port test 110 30 PASS WebSocket blocked port test 111 31 PASS WebSocket blocked port test 113 32 PASS WebSocket blocked port test 115 33 PASS WebSocket blocked port test 117 34 PASS WebSocket blocked port test 119 35 PASS WebSocket blocked port test 123 36 PASS WebSocket blocked port test 135 37 PASS WebSocket blocked port test 139 38 PASS WebSocket blocked port test 143 39 PASS WebSocket blocked port test 179 40 PASS WebSocket blocked port test 389 41 PASS WebSocket blocked port test 427 42 PASS WebSocket blocked port test 465 43 PASS WebSocket blocked port test 512 44 PASS WebSocket blocked port test 513 45 PASS WebSocket blocked port test 514 46 PASS WebSocket blocked port test 515 47 PASS WebSocket blocked port test 526 48 PASS WebSocket blocked port test 530 49 PASS WebSocket blocked port test 531 50 PASS WebSocket blocked port test 532 51 PASS WebSocket blocked port test 540 52 PASS WebSocket blocked port test 548 53 PASS WebSocket blocked port test 556 54 PASS WebSocket blocked port test 563 55 PASS WebSocket blocked port test 587 56 PASS WebSocket blocked port test 601 57 PASS WebSocket blocked port test 636 58 PASS WebSocket blocked port test 993 59 PASS WebSocket blocked port test 995 60 PASS WebSocket blocked port test 2049 61 PASS WebSocket blocked port test 3659 62 PASS WebSocket blocked port test 4045 63 PASS WebSocket blocked port test 5060 64 PASS WebSocket blocked port test 5061 65 PASS WebSocket blocked port test 6000 66 PASS WebSocket blocked port test 6665 67 PASS WebSocket blocked port test 6666 68 PASS WebSocket blocked port test 6667 69 PASS WebSocket blocked port test 6668 70 PASS WebSocket blocked port test 6669 71 PASS WebSocket blocked port test 6697 72 72 -
trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt
r269436 r269459 1 1 2 2 PASS Basic check 3 FAIL WebSocket blocked port test 1 The operation is insecure. 4 FAIL WebSocket blocked port test 7 The operation is insecure. 5 FAIL WebSocket blocked port test 9 The operation is insecure. 6 FAIL WebSocket blocked port test 11 The operation is insecure. 7 FAIL WebSocket blocked port test 13 The operation is insecure. 8 FAIL WebSocket blocked port test 15 The operation is insecure. 9 FAIL WebSocket blocked port test 17 The operation is insecure. 10 FAIL WebSocket blocked port test 19 The operation is insecure. 11 FAIL WebSocket blocked port test 20 The operation is insecure. 12 FAIL WebSocket blocked port test 21 The operation is insecure. 13 FAIL WebSocket blocked port test 22 The operation is insecure. 14 FAIL WebSocket blocked port test 23 The operation is insecure. 15 FAIL WebSocket blocked port test 25 The operation is insecure. 16 FAIL WebSocket blocked port test 37 The operation is insecure. 17 FAIL WebSocket blocked port test 42 The operation is insecure. 18 FAIL WebSocket blocked port test 43 The operation is insecure. 19 FAIL WebSocket blocked port test 53 The operation is insecure. 20 FAIL WebSocket blocked port test 77 The operation is insecure. 21 FAIL WebSocket blocked port test 79 The operation is insecure. 22 FAIL WebSocket blocked port test 87 The operation is insecure. 23 FAIL WebSocket blocked port test 95 The operation is insecure. 24 FAIL WebSocket blocked port test 101 The operation is insecure. 25 FAIL WebSocket blocked port test 102 The operation is insecure. 26 FAIL WebSocket blocked port test 103 The operation is insecure. 27 FAIL WebSocket blocked port test 104 The operation is insecure. 28 FAIL WebSocket blocked port test 109 The operation is insecure. 29 FAIL WebSocket blocked port test 110 The operation is insecure. 30 FAIL WebSocket blocked port test 111 The operation is insecure. 31 FAIL WebSocket blocked port test 113 The operation is insecure. 32 FAIL WebSocket blocked port test 115 The operation is insecure. 33 FAIL WebSocket blocked port test 117 The operation is insecure. 34 FAIL WebSocket blocked port test 119 The operation is insecure. 35 FAIL WebSocket blocked port test 123 The operation is insecure. 36 FAIL WebSocket blocked port test 135 The operation is insecure. 37 FAIL WebSocket blocked port test 139 The operation is insecure. 38 FAIL WebSocket blocked port test 143 The operation is insecure. 39 FAIL WebSocket blocked port test 179 The operation is insecure. 40 FAIL WebSocket blocked port test 389 The operation is insecure. 41 FAIL WebSocket blocked port test 427 The operation is insecure. 42 FAIL WebSocket blocked port test 465 The operation is insecure. 43 FAIL WebSocket blocked port test 512 The operation is insecure. 44 FAIL WebSocket blocked port test 513 The operation is insecure. 45 FAIL WebSocket blocked port test 514 The operation is insecure. 46 FAIL WebSocket blocked port test 515 The operation is insecure. 47 FAIL WebSocket blocked port test 526 The operation is insecure. 48 FAIL WebSocket blocked port test 530 The operation is insecure. 49 FAIL WebSocket blocked port test 531 The operation is insecure. 50 FAIL WebSocket blocked port test 532 The operation is insecure. 51 FAIL WebSocket blocked port test 540 The operation is insecure. 52 FAIL WebSocket blocked port test 548 The operation is insecure. 53 FAIL WebSocket blocked port test 556 The operation is insecure. 54 FAIL WebSocket blocked port test 563 The operation is insecure. 55 FAIL WebSocket blocked port test 587 The operation is insecure. 56 FAIL WebSocket blocked port test 601 The operation is insecure. 57 FAIL WebSocket blocked port test 636 The operation is insecure. 58 FAIL WebSocket blocked port test 993 The operation is insecure. 59 FAIL WebSocket blocked port test 995 The operation is insecure. 60 FAIL WebSocket blocked port test 2049 The operation is insecure. 61 FAIL WebSocket blocked port test 3659 The operation is insecure. 62 FAIL WebSocket blocked port test 4045 The operation is insecure. 63 FAIL WebSocket blocked port test 5060 The operation is insecure. 64 FAIL WebSocket blocked port test 5061 The operation is insecure. 65 FAIL WebSocket blocked port test 6000 The operation is insecure. 66 FAIL WebSocket blocked port test 6665 The operation is insecure. 67 FAIL WebSocket blocked port test 6666 The operation is insecure. 68 FAIL WebSocket blocked port test 6667 The operation is insecure. 69 FAIL WebSocket blocked port test 6668 The operation is insecure. 70 FAIL WebSocket blocked port test 6669 The operation is insecure. 71 FAIL WebSocket blocked port test 6697 The operation is insecure. 3 PASS WebSocket blocked port test 1 4 PASS WebSocket blocked port test 7 5 PASS WebSocket blocked port test 9 6 PASS WebSocket blocked port test 11 7 PASS WebSocket blocked port test 13 8 PASS WebSocket blocked port test 15 9 PASS WebSocket blocked port test 17 10 PASS WebSocket blocked port test 19 11 PASS WebSocket blocked port test 20 12 PASS WebSocket blocked port test 21 13 PASS WebSocket blocked port test 22 14 PASS WebSocket blocked port test 23 15 PASS WebSocket blocked port test 25 16 PASS WebSocket blocked port test 37 17 PASS WebSocket blocked port test 42 18 PASS WebSocket blocked port test 43 19 PASS WebSocket blocked port test 53 20 PASS WebSocket blocked port test 77 21 PASS WebSocket blocked port test 79 22 PASS WebSocket blocked port test 87 23 PASS WebSocket blocked port test 95 24 PASS WebSocket blocked port test 101 25 PASS WebSocket blocked port test 102 26 PASS WebSocket blocked port test 103 27 PASS WebSocket blocked port test 104 28 PASS WebSocket blocked port test 109 29 PASS WebSocket blocked port test 110 30 PASS WebSocket blocked port test 111 31 PASS WebSocket blocked port test 113 32 PASS WebSocket blocked port test 115 33 PASS WebSocket blocked port test 117 34 PASS WebSocket blocked port test 119 35 PASS WebSocket blocked port test 123 36 PASS WebSocket blocked port test 135 37 PASS WebSocket blocked port test 139 38 PASS WebSocket blocked port test 143 39 PASS WebSocket blocked port test 179 40 PASS WebSocket blocked port test 389 41 PASS WebSocket blocked port test 427 42 PASS WebSocket blocked port test 465 43 PASS WebSocket blocked port test 512 44 PASS WebSocket blocked port test 513 45 PASS WebSocket blocked port test 514 46 PASS WebSocket blocked port test 515 47 PASS WebSocket blocked port test 526 48 PASS WebSocket blocked port test 530 49 PASS WebSocket blocked port test 531 50 PASS WebSocket blocked port test 532 51 PASS WebSocket blocked port test 540 52 PASS WebSocket blocked port test 548 53 PASS WebSocket blocked port test 556 54 PASS WebSocket blocked port test 563 55 PASS WebSocket blocked port test 587 56 PASS WebSocket blocked port test 601 57 PASS WebSocket blocked port test 636 58 PASS WebSocket blocked port test 993 59 PASS WebSocket blocked port test 995 60 PASS WebSocket blocked port test 2049 61 PASS WebSocket blocked port test 3659 62 PASS WebSocket blocked port test 4045 63 PASS WebSocket blocked port test 5060 64 PASS WebSocket blocked port test 5061 65 PASS WebSocket blocked port test 6000 66 PASS WebSocket blocked port test 6665 67 PASS WebSocket blocked port test 6666 68 PASS WebSocket blocked port test 6667 69 PASS WebSocket blocked port test 6668 70 PASS WebSocket blocked port test 6669 71 PASS WebSocket blocked port test 6697 72 72 -
trunk/Source/WebCore/ChangeLog
r269458 r269459 1 2020-11-05 Youenn Fablet <youenn@apple.com> 2 3 WebSocket constructor should not throw in case port is blocked 4 https://bugs.webkit.org/show_bug.cgi?id=218617 5 6 Reviewed by Alex Christensen. 7 8 Update as per spec, see https://github.com/web-platform-tests/wpt/pull/5212. 9 Covered by existing tests. 10 11 * Modules/websockets/WebSocket.cpp: 12 (WebCore::WebSocket::connect): 13 1 14 2020-11-05 Simon Fraser <simon.fraser@apple.com> 2 15 -
trunk/Source/WebCore/Modules/websockets/WebSocket.cpp
r266168 r269459 262 262 message = "WebSocket without port blocked"_s; 263 263 context.addConsoleMessage(MessageSource::JS, MessageLevel::Error, message); 264 m_state = CLOSED;265 return Exception { SecurityError};264 failAsynchronously(); 265 return { }; 266 266 } 267 267
Note: See TracChangeset
for help on using the changeset viewer.