Diff
Modified: branches/safari-610-branch/LayoutTests/ChangeLog (270861 => 270862)
--- branches/safari-610-branch/LayoutTests/ChangeLog 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/LayoutTests/ChangeLog 2020-12-15 22:47:08 UTC (rev 270862)
@@ -1,3 +1,49 @@
+2020-12-15 Alan Coon <[email protected]>
+
+ Cherry-pick r269436. rdar://problem/72298523
+
+ Consider blocking ports 5060 and 5061
+ https://bugs.webkit.org/show_bug.cgi?id=218557
+ <rdar://problem/71031479>
+
+ Reviewed by Alex Christensen.
+
+ LayoutTests/imported/w3c:
+
+ * web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.html: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.js: Added.
+ (BLOCKED_PORTS_LIST.map):
+ * web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.worker.html: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.html: Removed.
+ * web-platform-tests/tools/wptserve/wptserve/utils.py:
+ (is_bad_port):
+ * web-platform-tests/websockets/Create-blocked-port.any-expected.txt:
+ * web-platform-tests/websockets/Create-blocked-port.any.js:
+ * web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt:
+
+ Source/WTF:
+
+ * wtf/URL.cpp:
+ (WTF::portAllowed):
+
+ LayoutTests:
+
+ * TestExpectations:
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@269436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2020-11-05 Youenn Fablet <[email protected]>
+
+ Consider blocking ports 5060 and 5061
+ https://bugs.webkit.org/show_bug.cgi?id=218557
+ <rdar://problem/71031479>
+
+ Reviewed by Alex Christensen.
+
+ * TestExpectations:
+
2020-12-14 Alan Coon <[email protected]>
Cherry-pick r270373. rdar://problem/72298666
Modified: branches/safari-610-branch/LayoutTests/TestExpectations (270861 => 270862)
--- branches/safari-610-branch/LayoutTests/TestExpectations 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/LayoutTests/TestExpectations 2020-12-15 22:47:08 UTC (rev 270862)
@@ -3040,8 +3040,6 @@
imported/w3c/web-platform-tests/websockets/cookies/001.html [ Pass Failure ]
# Timing out WebSocket tests.
-imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker.html [ Skip ]
-imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.html [ Skip ]
imported/w3c/web-platform-tests/websockets/binaryType-wrong-value.any.html [ Skip ]
imported/w3c/web-platform-tests/websockets/binaryType-wrong-value.any.worker.html [ Skip ]
imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.html [ Skip ]
Modified: branches/safari-610-branch/LayoutTests/imported/w3c/ChangeLog (270861 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/ChangeLog 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/ChangeLog 2020-12-15 22:47:08 UTC (rev 270862)
@@ -1,3 +1,60 @@
+2020-12-15 Alan Coon <[email protected]>
+
+ Cherry-pick r269436. rdar://problem/72298523
+
+ Consider blocking ports 5060 and 5061
+ https://bugs.webkit.org/show_bug.cgi?id=218557
+ <rdar://problem/71031479>
+
+ Reviewed by Alex Christensen.
+
+ LayoutTests/imported/w3c:
+
+ * web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.html: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.js: Added.
+ (BLOCKED_PORTS_LIST.map):
+ * web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.worker.html: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.html: Removed.
+ * web-platform-tests/tools/wptserve/wptserve/utils.py:
+ (is_bad_port):
+ * web-platform-tests/websockets/Create-blocked-port.any-expected.txt:
+ * web-platform-tests/websockets/Create-blocked-port.any.js:
+ * web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt:
+
+ Source/WTF:
+
+ * wtf/URL.cpp:
+ (WTF::portAllowed):
+
+ LayoutTests:
+
+ * TestExpectations:
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@269436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2020-11-05 Youenn Fablet <[email protected]>
+
+ Consider blocking ports 5060 and 5061
+ https://bugs.webkit.org/show_bug.cgi?id=218557
+ <rdar://problem/71031479>
+
+ Reviewed by Alex Christensen.
+
+ * web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.html: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.js: Added.
+ (BLOCKED_PORTS_LIST.map):
+ * web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.worker.html: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.html: Removed.
+ * web-platform-tests/tools/wptserve/wptserve/utils.py:
+ (is_bad_port):
+ * web-platform-tests/websockets/Create-blocked-port.any-expected.txt:
+ * web-platform-tests/websockets/Create-blocked-port.any.js:
+ * web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt:
+
2020-11-13 Russell Epstein <[email protected]>
Cherry-pick r266052. rdar://problem/71378190
Deleted: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port-expected.txt (270861 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port-expected.txt 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port-expected.txt 2020-12-15 22:47:08 UTC (rev 270862)
@@ -1,136 +0,0 @@
-Blocked access to external URL http://example.com:1/
-Blocked access to external URL http://example.com:7/
-Blocked access to external URL http://example.com:9/
-Blocked access to external URL http://example.com:11/
-Blocked access to external URL http://example.com:13/
-Blocked access to external URL http://example.com:15/
-Blocked access to external URL http://example.com:17/
-Blocked access to external URL http://example.com:19/
-Blocked access to external URL http://example.com:20/
-Blocked access to external URL http://example.com:21/
-Blocked access to external URL http://example.com:22/
-Blocked access to external URL http://example.com:23/
-Blocked access to external URL http://example.com:25/
-Blocked access to external URL http://example.com:37/
-Blocked access to external URL http://example.com:42/
-Blocked access to external URL http://example.com:43/
-Blocked access to external URL http://example.com:53/
-Blocked access to external URL http://example.com:77/
-Blocked access to external URL http://example.com:79/
-Blocked access to external URL http://example.com:87/
-Blocked access to external URL http://example.com:95/
-Blocked access to external URL http://example.com:101/
-Blocked access to external URL http://example.com:102/
-Blocked access to external URL http://example.com:103/
-Blocked access to external URL http://example.com:104/
-Blocked access to external URL http://example.com:109/
-Blocked access to external URL http://example.com:110/
-Blocked access to external URL http://example.com:111/
-Blocked access to external URL http://example.com:113/
-Blocked access to external URL http://example.com:115/
-Blocked access to external URL http://example.com:117/
-Blocked access to external URL http://example.com:119/
-Blocked access to external URL http://example.com:123/
-Blocked access to external URL http://example.com:135/
-Blocked access to external URL http://example.com:139/
-Blocked access to external URL http://example.com:143/
-Blocked access to external URL http://example.com:179/
-Blocked access to external URL http://example.com:389/
-Blocked access to external URL http://example.com:427/
-Blocked access to external URL http://example.com:465/
-Blocked access to external URL http://example.com:512/
-Blocked access to external URL http://example.com:513/
-Blocked access to external URL http://example.com:514/
-Blocked access to external URL http://example.com:515/
-Blocked access to external URL http://example.com:526/
-Blocked access to external URL http://example.com:530/
-Blocked access to external URL http://example.com:531/
-Blocked access to external URL http://example.com:532/
-Blocked access to external URL http://example.com:540/
-Blocked access to external URL http://example.com:548/
-Blocked access to external URL http://example.com:556/
-Blocked access to external URL http://example.com:563/
-Blocked access to external URL http://example.com:587/
-Blocked access to external URL http://example.com:601/
-Blocked access to external URL http://example.com:636/
-Blocked access to external URL http://example.com:993/
-Blocked access to external URL http://example.com:995/
-Blocked access to external URL http://example.com:2049/
-Blocked access to external URL http://example.com:3659/
-Blocked access to external URL http://example.com:4045/
-Blocked access to external URL http://example.com:6000/
-Blocked access to external URL http://example.com:6665/
-Blocked access to external URL http://example.com:6666/
-Blocked access to external URL http://example.com:6667/
-Blocked access to external URL http://example.com:6668/
-Blocked access to external URL http://example.com:6669/
-Blocked access to external URL http://example.com:6697/
-
-PASS Request on bad port 1 should throw TypeError.
-PASS Request on bad port 7 should throw TypeError.
-PASS Request on bad port 9 should throw TypeError.
-PASS Request on bad port 11 should throw TypeError.
-PASS Request on bad port 13 should throw TypeError.
-PASS Request on bad port 15 should throw TypeError.
-PASS Request on bad port 17 should throw TypeError.
-PASS Request on bad port 19 should throw TypeError.
-PASS Request on bad port 20 should throw TypeError.
-PASS Request on bad port 21 should throw TypeError.
-PASS Request on bad port 22 should throw TypeError.
-PASS Request on bad port 23 should throw TypeError.
-PASS Request on bad port 25 should throw TypeError.
-PASS Request on bad port 37 should throw TypeError.
-PASS Request on bad port 42 should throw TypeError.
-PASS Request on bad port 43 should throw TypeError.
-PASS Request on bad port 53 should throw TypeError.
-PASS Request on bad port 77 should throw TypeError.
-PASS Request on bad port 79 should throw TypeError.
-PASS Request on bad port 87 should throw TypeError.
-PASS Request on bad port 95 should throw TypeError.
-PASS Request on bad port 101 should throw TypeError.
-PASS Request on bad port 102 should throw TypeError.
-PASS Request on bad port 103 should throw TypeError.
-PASS Request on bad port 104 should throw TypeError.
-PASS Request on bad port 109 should throw TypeError.
-PASS Request on bad port 110 should throw TypeError.
-PASS Request on bad port 111 should throw TypeError.
-PASS Request on bad port 113 should throw TypeError.
-PASS Request on bad port 115 should throw TypeError.
-PASS Request on bad port 117 should throw TypeError.
-PASS Request on bad port 119 should throw TypeError.
-PASS Request on bad port 123 should throw TypeError.
-PASS Request on bad port 135 should throw TypeError.
-PASS Request on bad port 139 should throw TypeError.
-PASS Request on bad port 143 should throw TypeError.
-PASS Request on bad port 179 should throw TypeError.
-PASS Request on bad port 389 should throw TypeError.
-PASS Request on bad port 427 should throw TypeError.
-PASS Request on bad port 465 should throw TypeError.
-PASS Request on bad port 512 should throw TypeError.
-PASS Request on bad port 513 should throw TypeError.
-PASS Request on bad port 514 should throw TypeError.
-PASS Request on bad port 515 should throw TypeError.
-PASS Request on bad port 526 should throw TypeError.
-PASS Request on bad port 530 should throw TypeError.
-PASS Request on bad port 531 should throw TypeError.
-PASS Request on bad port 532 should throw TypeError.
-PASS Request on bad port 540 should throw TypeError.
-PASS Request on bad port 548 should throw TypeError.
-PASS Request on bad port 556 should throw TypeError.
-PASS Request on bad port 563 should throw TypeError.
-PASS Request on bad port 587 should throw TypeError.
-PASS Request on bad port 601 should throw TypeError.
-PASS Request on bad port 636 should throw TypeError.
-PASS Request on bad port 993 should throw TypeError.
-PASS Request on bad port 995 should throw TypeError.
-PASS Request on bad port 2049 should throw TypeError.
-PASS Request on bad port 3659 should throw TypeError.
-PASS Request on bad port 4045 should throw TypeError.
-PASS Request on bad port 6000 should throw TypeError.
-PASS Request on bad port 6665 should throw TypeError.
-PASS Request on bad port 6666 should throw TypeError.
-PASS Request on bad port 6667 should throw TypeError.
-PASS Request on bad port 6668 should throw TypeError.
-PASS Request on bad port 6669 should throw TypeError.
-PASS Request on bad port 6697 should throw TypeError.
-
Copied: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt (from rev 270817, branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port-expected.txt) (0 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt (rev 0)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt 2020-12-15 22:47:08 UTC (rev 270862)
@@ -0,0 +1,139 @@
+Blocked access to external URL http://example.com:1/
+Blocked access to external URL http://example.com:7/
+Blocked access to external URL http://example.com:9/
+Blocked access to external URL http://example.com:11/
+Blocked access to external URL http://example.com:13/
+Blocked access to external URL http://example.com:15/
+Blocked access to external URL http://example.com:17/
+Blocked access to external URL http://example.com:19/
+Blocked access to external URL http://example.com:20/
+Blocked access to external URL http://example.com:21/
+Blocked access to external URL http://example.com:22/
+Blocked access to external URL http://example.com:23/
+Blocked access to external URL http://example.com:25/
+Blocked access to external URL http://example.com:37/
+Blocked access to external URL http://example.com:42/
+Blocked access to external URL http://example.com:43/
+Blocked access to external URL http://example.com:53/
+Blocked access to external URL http://example.com:77/
+Blocked access to external URL http://example.com:79/
+Blocked access to external URL http://example.com:87/
+Blocked access to external URL http://example.com:95/
+Blocked access to external URL http://example.com:101/
+Blocked access to external URL http://example.com:102/
+Blocked access to external URL http://example.com:103/
+Blocked access to external URL http://example.com:104/
+Blocked access to external URL http://example.com:109/
+Blocked access to external URL http://example.com:110/
+Blocked access to external URL http://example.com:111/
+Blocked access to external URL http://example.com:113/
+Blocked access to external URL http://example.com:115/
+Blocked access to external URL http://example.com:117/
+Blocked access to external URL http://example.com:119/
+Blocked access to external URL http://example.com:123/
+Blocked access to external URL http://example.com:135/
+Blocked access to external URL http://example.com:139/
+Blocked access to external URL http://example.com:143/
+Blocked access to external URL http://example.com:179/
+Blocked access to external URL http://example.com:389/
+Blocked access to external URL http://example.com:427/
+Blocked access to external URL http://example.com:465/
+Blocked access to external URL http://example.com:512/
+Blocked access to external URL http://example.com:513/
+Blocked access to external URL http://example.com:514/
+Blocked access to external URL http://example.com:515/
+Blocked access to external URL http://example.com:526/
+Blocked access to external URL http://example.com:530/
+Blocked access to external URL http://example.com:531/
+Blocked access to external URL http://example.com:532/
+Blocked access to external URL http://example.com:540/
+Blocked access to external URL http://example.com:548/
+Blocked access to external URL http://example.com:556/
+Blocked access to external URL http://example.com:563/
+Blocked access to external URL http://example.com:587/
+Blocked access to external URL http://example.com:601/
+Blocked access to external URL http://example.com:636/
+Blocked access to external URL http://example.com:993/
+Blocked access to external URL http://example.com:995/
+Blocked access to external URL http://example.com:2049/
+Blocked access to external URL http://example.com:3659/
+Blocked access to external URL http://example.com:4045/
+Blocked access to external URL http://example.com:5060/
+Blocked access to external URL http://example.com:5061/
+Blocked access to external URL http://example.com:6000/
+Blocked access to external URL http://example.com:6665/
+Blocked access to external URL http://example.com:6666/
+Blocked access to external URL http://example.com:6667/
+Blocked access to external URL http://example.com:6668/
+Blocked access to external URL http://example.com:6669/
+Blocked access to external URL http://example.com:6697/
+
+PASS Request on bad port 1 should throw TypeError.
+PASS Request on bad port 7 should throw TypeError.
+PASS Request on bad port 9 should throw TypeError.
+PASS Request on bad port 11 should throw TypeError.
+PASS Request on bad port 13 should throw TypeError.
+PASS Request on bad port 15 should throw TypeError.
+PASS Request on bad port 17 should throw TypeError.
+PASS Request on bad port 19 should throw TypeError.
+PASS Request on bad port 20 should throw TypeError.
+PASS Request on bad port 21 should throw TypeError.
+PASS Request on bad port 22 should throw TypeError.
+PASS Request on bad port 23 should throw TypeError.
+PASS Request on bad port 25 should throw TypeError.
+PASS Request on bad port 37 should throw TypeError.
+PASS Request on bad port 42 should throw TypeError.
+PASS Request on bad port 43 should throw TypeError.
+PASS Request on bad port 53 should throw TypeError.
+PASS Request on bad port 77 should throw TypeError.
+PASS Request on bad port 79 should throw TypeError.
+PASS Request on bad port 87 should throw TypeError.
+PASS Request on bad port 95 should throw TypeError.
+PASS Request on bad port 101 should throw TypeError.
+PASS Request on bad port 102 should throw TypeError.
+PASS Request on bad port 103 should throw TypeError.
+PASS Request on bad port 104 should throw TypeError.
+PASS Request on bad port 109 should throw TypeError.
+PASS Request on bad port 110 should throw TypeError.
+PASS Request on bad port 111 should throw TypeError.
+PASS Request on bad port 113 should throw TypeError.
+PASS Request on bad port 115 should throw TypeError.
+PASS Request on bad port 117 should throw TypeError.
+PASS Request on bad port 119 should throw TypeError.
+PASS Request on bad port 123 should throw TypeError.
+PASS Request on bad port 135 should throw TypeError.
+PASS Request on bad port 139 should throw TypeError.
+PASS Request on bad port 143 should throw TypeError.
+PASS Request on bad port 179 should throw TypeError.
+PASS Request on bad port 389 should throw TypeError.
+PASS Request on bad port 427 should throw TypeError.
+PASS Request on bad port 465 should throw TypeError.
+PASS Request on bad port 512 should throw TypeError.
+PASS Request on bad port 513 should throw TypeError.
+PASS Request on bad port 514 should throw TypeError.
+PASS Request on bad port 515 should throw TypeError.
+PASS Request on bad port 526 should throw TypeError.
+PASS Request on bad port 530 should throw TypeError.
+PASS Request on bad port 531 should throw TypeError.
+PASS Request on bad port 532 should throw TypeError.
+PASS Request on bad port 540 should throw TypeError.
+PASS Request on bad port 548 should throw TypeError.
+PASS Request on bad port 556 should throw TypeError.
+PASS Request on bad port 563 should throw TypeError.
+PASS Request on bad port 587 should throw TypeError.
+PASS Request on bad port 601 should throw TypeError.
+PASS Request on bad port 636 should throw TypeError.
+PASS Request on bad port 993 should throw TypeError.
+PASS Request on bad port 995 should throw TypeError.
+PASS Request on bad port 2049 should throw TypeError.
+PASS Request on bad port 3659 should throw TypeError.
+PASS Request on bad port 4045 should throw TypeError.
+PASS Request on bad port 5060 should throw TypeError.
+PASS Request on bad port 5061 should throw TypeError.
+PASS Request on bad port 6000 should throw TypeError.
+PASS Request on bad port 6665 should throw TypeError.
+PASS Request on bad port 6666 should throw TypeError.
+PASS Request on bad port 6667 should throw TypeError.
+PASS Request on bad port 6668 should throw TypeError.
+PASS Request on bad port 6669 should throw TypeError.
+PASS Request on bad port 6697 should throw TypeError.
Added: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.html (0 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.html (rev 0)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.html 2020-12-15 22:47:08 UTC (rev 270862)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.js (0 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.js (rev 0)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.js 2020-12-15 22:47:08 UTC (rev 270862)
@@ -0,0 +1,81 @@
+// META: global=window,worker
+
+// list of bad ports according to
+// https://fetch.spec.whatwg.org/#port-blocking
+var BLOCKED_PORTS_LIST = [
+ 1, // tcpmux
+ 7, // echo
+ 9, // discard
+ 11, // systat
+ 13, // daytime
+ 15, // netstat
+ 17, // qotd
+ 19, // chargen
+ 20, // ftp-data
+ 21, // ftp
+ 22, // ssh
+ 23, // telnet
+ 25, // smtp
+ 37, // time
+ 42, // name
+ 43, // nicname
+ 53, // domain
+ 77, // priv-rjs
+ 79, // finger
+ 87, // ttylink
+ 95, // supdup
+ 101, // hostriame
+ 102, // iso-tsap
+ 103, // gppitnp
+ 104, // acr-nema
+ 109, // pop2
+ 110, // pop3
+ 111, // sunrpc
+ 113, // auth
+ 115, // sftp
+ 117, // uucp-path
+ 119, // nntp
+ 123, // ntp
+ 135, // loc-srv / epmap
+ 139, // netbios
+ 143, // imap2
+ 179, // bgp
+ 389, // ldap
+ 427, // afp (alternate)
+ 465, // smtp (alternate)
+ 512, // print / exec
+ 513, // login
+ 514, // shell
+ 515, // printer
+ 526, // tempo
+ 530, // courier
+ 531, // chat
+ 532, // netnews
+ 540, // uucp
+ 548, // afp
+ 556, // remotefs
+ 563, // nntp+ssl
+ 587, // smtp (outgoing)
+ 601, // syslog-conn
+ 636, // ldap+ssl
+ 993, // ldap+ssl
+ 995, // pop3+ssl
+ 2049, // nfs
+ 3659, // apple-sasl
+ 4045, // lockd
+ 5060, // sip
+ 5061, // sips
+ 6000, // x11
+ 6665, // irc (alternate)
+ 6666, // irc (alternate)
+ 6667, // irc (default)
+ 6668, // irc (alternate)
+ 6669, // irc (alternate)
+ 6697, // irc+tls
+];
+
+BLOCKED_PORTS_LIST.map(function(a){
+ promise_test(function(t){
+ return promise_rejects_js(t, TypeError, fetch("http://example.com:" + a))
+ }, 'Request on bad port ' + a + ' should throw TypeError.');
+});
Added: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt (0 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt (rev 0)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt 2020-12-15 22:47:08 UTC (rev 270862)
@@ -0,0 +1,140 @@
+Blocked access to external URL http://example.com:1/
+Blocked access to external URL http://example.com:7/
+Blocked access to external URL http://example.com:9/
+Blocked access to external URL http://example.com:11/
+Blocked access to external URL http://example.com:13/
+Blocked access to external URL http://example.com:15/
+Blocked access to external URL http://example.com:17/
+Blocked access to external URL http://example.com:19/
+Blocked access to external URL http://example.com:20/
+Blocked access to external URL http://example.com:21/
+Blocked access to external URL http://example.com:22/
+Blocked access to external URL http://example.com:23/
+Blocked access to external URL http://example.com:25/
+Blocked access to external URL http://example.com:37/
+Blocked access to external URL http://example.com:42/
+Blocked access to external URL http://example.com:43/
+Blocked access to external URL http://example.com:53/
+Blocked access to external URL http://example.com:77/
+Blocked access to external URL http://example.com:79/
+Blocked access to external URL http://example.com:87/
+Blocked access to external URL http://example.com:95/
+Blocked access to external URL http://example.com:101/
+Blocked access to external URL http://example.com:102/
+Blocked access to external URL http://example.com:103/
+Blocked access to external URL http://example.com:104/
+Blocked access to external URL http://example.com:109/
+Blocked access to external URL http://example.com:110/
+Blocked access to external URL http://example.com:111/
+Blocked access to external URL http://example.com:113/
+Blocked access to external URL http://example.com:115/
+Blocked access to external URL http://example.com:117/
+Blocked access to external URL http://example.com:119/
+Blocked access to external URL http://example.com:123/
+Blocked access to external URL http://example.com:135/
+Blocked access to external URL http://example.com:139/
+Blocked access to external URL http://example.com:143/
+Blocked access to external URL http://example.com:179/
+Blocked access to external URL http://example.com:389/
+Blocked access to external URL http://example.com:427/
+Blocked access to external URL http://example.com:465/
+Blocked access to external URL http://example.com:512/
+Blocked access to external URL http://example.com:513/
+Blocked access to external URL http://example.com:514/
+Blocked access to external URL http://example.com:515/
+Blocked access to external URL http://example.com:526/
+Blocked access to external URL http://example.com:530/
+Blocked access to external URL http://example.com:531/
+Blocked access to external URL http://example.com:532/
+Blocked access to external URL http://example.com:540/
+Blocked access to external URL http://example.com:548/
+Blocked access to external URL http://example.com:556/
+Blocked access to external URL http://example.com:563/
+Blocked access to external URL http://example.com:587/
+Blocked access to external URL http://example.com:601/
+Blocked access to external URL http://example.com:636/
+Blocked access to external URL http://example.com:993/
+Blocked access to external URL http://example.com:995/
+Blocked access to external URL http://example.com:2049/
+Blocked access to external URL http://example.com:3659/
+Blocked access to external URL http://example.com:4045/
+Blocked access to external URL http://example.com:5060/
+Blocked access to external URL http://example.com:5061/
+Blocked access to external URL http://example.com:6000/
+Blocked access to external URL http://example.com:6665/
+Blocked access to external URL http://example.com:6666/
+Blocked access to external URL http://example.com:6667/
+Blocked access to external URL http://example.com:6668/
+Blocked access to external URL http://example.com:6669/
+Blocked access to external URL http://example.com:6697/
+
+PASS Request on bad port 1 should throw TypeError.
+PASS Request on bad port 7 should throw TypeError.
+PASS Request on bad port 9 should throw TypeError.
+PASS Request on bad port 11 should throw TypeError.
+PASS Request on bad port 13 should throw TypeError.
+PASS Request on bad port 15 should throw TypeError.
+PASS Request on bad port 17 should throw TypeError.
+PASS Request on bad port 19 should throw TypeError.
+PASS Request on bad port 20 should throw TypeError.
+PASS Request on bad port 21 should throw TypeError.
+PASS Request on bad port 22 should throw TypeError.
+PASS Request on bad port 23 should throw TypeError.
+PASS Request on bad port 25 should throw TypeError.
+PASS Request on bad port 37 should throw TypeError.
+PASS Request on bad port 42 should throw TypeError.
+PASS Request on bad port 43 should throw TypeError.
+PASS Request on bad port 53 should throw TypeError.
+PASS Request on bad port 77 should throw TypeError.
+PASS Request on bad port 79 should throw TypeError.
+PASS Request on bad port 87 should throw TypeError.
+PASS Request on bad port 95 should throw TypeError.
+PASS Request on bad port 101 should throw TypeError.
+PASS Request on bad port 102 should throw TypeError.
+PASS Request on bad port 103 should throw TypeError.
+PASS Request on bad port 104 should throw TypeError.
+PASS Request on bad port 109 should throw TypeError.
+PASS Request on bad port 110 should throw TypeError.
+PASS Request on bad port 111 should throw TypeError.
+PASS Request on bad port 113 should throw TypeError.
+PASS Request on bad port 115 should throw TypeError.
+PASS Request on bad port 117 should throw TypeError.
+PASS Request on bad port 119 should throw TypeError.
+PASS Request on bad port 123 should throw TypeError.
+PASS Request on bad port 135 should throw TypeError.
+PASS Request on bad port 139 should throw TypeError.
+PASS Request on bad port 143 should throw TypeError.
+PASS Request on bad port 179 should throw TypeError.
+PASS Request on bad port 389 should throw TypeError.
+PASS Request on bad port 427 should throw TypeError.
+PASS Request on bad port 465 should throw TypeError.
+PASS Request on bad port 512 should throw TypeError.
+PASS Request on bad port 513 should throw TypeError.
+PASS Request on bad port 514 should throw TypeError.
+PASS Request on bad port 515 should throw TypeError.
+PASS Request on bad port 526 should throw TypeError.
+PASS Request on bad port 530 should throw TypeError.
+PASS Request on bad port 531 should throw TypeError.
+PASS Request on bad port 532 should throw TypeError.
+PASS Request on bad port 540 should throw TypeError.
+PASS Request on bad port 548 should throw TypeError.
+PASS Request on bad port 556 should throw TypeError.
+PASS Request on bad port 563 should throw TypeError.
+PASS Request on bad port 587 should throw TypeError.
+PASS Request on bad port 601 should throw TypeError.
+PASS Request on bad port 636 should throw TypeError.
+PASS Request on bad port 993 should throw TypeError.
+PASS Request on bad port 995 should throw TypeError.
+PASS Request on bad port 2049 should throw TypeError.
+PASS Request on bad port 3659 should throw TypeError.
+PASS Request on bad port 4045 should throw TypeError.
+PASS Request on bad port 5060 should throw TypeError.
+PASS Request on bad port 5061 should throw TypeError.
+PASS Request on bad port 6000 should throw TypeError.
+PASS Request on bad port 6665 should throw TypeError.
+PASS Request on bad port 6666 should throw TypeError.
+PASS Request on bad port 6667 should throw TypeError.
+PASS Request on bad port 6668 should throw TypeError.
+PASS Request on bad port 6669 should throw TypeError.
+PASS Request on bad port 6697 should throw TypeError.
+
Added: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.worker.html (0 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.worker.html (rev 0)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.worker.html 2020-12-15 22:47:08 UTC (rev 270862)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Deleted: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.html (270861 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.html 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.html 2020-12-15 22:47:08 UTC (rev 270862)
@@ -1,85 +0,0 @@
-<!doctype html>
-<meta charset="utf-8">
-<title></title>
-<script src=""
-<script src=""
-<script>
-
- // list of bad ports according to
- // https://fetch.spec.whatwg.org/#port-blocking
- var BLOCKED_PORTS_LIST = [
- 1, // tcpmux
- 7, // echo
- 9, // discard
- 11, // systat
- 13, // daytime
- 15, // netstat
- 17, // qotd
- 19, // chargen
- 20, // ftp-data
- 21, // ftp
- 22, // ssh
- 23, // telnet
- 25, // smtp
- 37, // time
- 42, // name
- 43, // nicname
- 53, // domain
- 77, // priv-rjs
- 79, // finger
- 87, // ttylink
- 95, // supdup
- 101, // hostriame
- 102, // iso-tsap
- 103, // gppitnp
- 104, // acr-nema
- 109, // pop2
- 110, // pop3
- 111, // sunrpc
- 113, // auth
- 115, // sftp
- 117, // uucp-path
- 119, // nntp
- 123, // ntp
- 135, // loc-srv / epmap
- 139, // netbios
- 143, // imap2
- 179, // bgp
- 389, // ldap
- 427, // afp (alternate)
- 465, // smtp (alternate)
- 512, // print / exec
- 513, // login
- 514, // shell
- 515, // printer
- 526, // tempo
- 530, // courier
- 531, // chat
- 532, // netnews
- 540, // uucp
- 548, // afp
- 556, // remotefs
- 563, // nntp+ssl
- 587, // smtp (outgoing)
- 601, // syslog-conn
- 636, // ldap+ssl
- 993, // ldap+ssl
- 995, // pop3+ssl
- 2049, // nfs
- 3659, // apple-sasl
- 4045, // lockd
- 6000, // x11
- 6665, // irc (alternate)
- 6666, // irc (alternate)
- 6667, // irc (default)
- 6668, // irc (alternate)
- 6669, // irc (alternate)
- 6697, // irc+tls
- ];
-
- BLOCKED_PORTS_LIST.map(function(a){
- promise_test(function(t){
- return promise_rejects_js(t, TypeError, fetch("http://example.com:" + a))
- }, 'Request on bad port ' + a + ' should throw TypeError.');
- });
-</script>
Modified: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/tools/wptserve/wptserve/utils.py (270861 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/tools/wptserve/wptserve/utils.py 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/tools/wptserve/wptserve/utils.py 2020-12-15 22:47:08 UTC (rev 270862)
@@ -130,6 +130,8 @@
2049, # nfs
3659, # apple-sasl
4045, # lockd
+ 5060, # sip
+ 5061, # sips
6000, # x11
6665, # irc (alternate)
6666, # irc (alternate)
Modified: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt (270861 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt 2020-12-15 22:47:08 UTC (rev 270862)
@@ -1,70 +1,3 @@
-CONSOLE MESSAGE: WebSocket port 1 blocked
-CONSOLE MESSAGE: WebSocket port 7 blocked
-CONSOLE MESSAGE: WebSocket port 9 blocked
-CONSOLE MESSAGE: WebSocket port 11 blocked
-CONSOLE MESSAGE: WebSocket port 13 blocked
-CONSOLE MESSAGE: WebSocket port 15 blocked
-CONSOLE MESSAGE: WebSocket port 17 blocked
-CONSOLE MESSAGE: WebSocket port 19 blocked
-CONSOLE MESSAGE: WebSocket port 20 blocked
-CONSOLE MESSAGE: WebSocket port 21 blocked
-CONSOLE MESSAGE: WebSocket port 22 blocked
-CONSOLE MESSAGE: WebSocket port 23 blocked
-CONSOLE MESSAGE: WebSocket port 25 blocked
-CONSOLE MESSAGE: WebSocket port 37 blocked
-CONSOLE MESSAGE: WebSocket port 42 blocked
-CONSOLE MESSAGE: WebSocket port 43 blocked
-CONSOLE MESSAGE: WebSocket port 53 blocked
-CONSOLE MESSAGE: WebSocket port 77 blocked
-CONSOLE MESSAGE: WebSocket port 79 blocked
-CONSOLE MESSAGE: WebSocket port 87 blocked
-CONSOLE MESSAGE: WebSocket port 95 blocked
-CONSOLE MESSAGE: WebSocket port 101 blocked
-CONSOLE MESSAGE: WebSocket port 102 blocked
-CONSOLE MESSAGE: WebSocket port 103 blocked
-CONSOLE MESSAGE: WebSocket port 104 blocked
-CONSOLE MESSAGE: WebSocket port 109 blocked
-CONSOLE MESSAGE: WebSocket port 110 blocked
-CONSOLE MESSAGE: WebSocket port 111 blocked
-CONSOLE MESSAGE: WebSocket port 113 blocked
-CONSOLE MESSAGE: WebSocket port 115 blocked
-CONSOLE MESSAGE: WebSocket port 117 blocked
-CONSOLE MESSAGE: WebSocket port 119 blocked
-CONSOLE MESSAGE: WebSocket port 123 blocked
-CONSOLE MESSAGE: WebSocket port 135 blocked
-CONSOLE MESSAGE: WebSocket port 139 blocked
-CONSOLE MESSAGE: WebSocket port 143 blocked
-CONSOLE MESSAGE: WebSocket port 179 blocked
-CONSOLE MESSAGE: WebSocket port 389 blocked
-CONSOLE MESSAGE: WebSocket port 427 blocked
-CONSOLE MESSAGE: WebSocket port 465 blocked
-CONSOLE MESSAGE: WebSocket port 512 blocked
-CONSOLE MESSAGE: WebSocket port 513 blocked
-CONSOLE MESSAGE: WebSocket port 514 blocked
-CONSOLE MESSAGE: WebSocket port 515 blocked
-CONSOLE MESSAGE: WebSocket port 526 blocked
-CONSOLE MESSAGE: WebSocket port 530 blocked
-CONSOLE MESSAGE: WebSocket port 531 blocked
-CONSOLE MESSAGE: WebSocket port 532 blocked
-CONSOLE MESSAGE: WebSocket port 540 blocked
-CONSOLE MESSAGE: WebSocket port 548 blocked
-CONSOLE MESSAGE: WebSocket port 556 blocked
-CONSOLE MESSAGE: WebSocket port 563 blocked
-CONSOLE MESSAGE: WebSocket port 587 blocked
-CONSOLE MESSAGE: WebSocket port 601 blocked
-CONSOLE MESSAGE: WebSocket port 636 blocked
-CONSOLE MESSAGE: WebSocket port 993 blocked
-CONSOLE MESSAGE: WebSocket port 995 blocked
-CONSOLE MESSAGE: WebSocket port 2049 blocked
-CONSOLE MESSAGE: WebSocket port 3659 blocked
-CONSOLE MESSAGE: WebSocket port 4045 blocked
-CONSOLE MESSAGE: WebSocket port 6000 blocked
-CONSOLE MESSAGE: WebSocket port 6665 blocked
-CONSOLE MESSAGE: WebSocket port 6666 blocked
-CONSOLE MESSAGE: WebSocket port 6667 blocked
-CONSOLE MESSAGE: WebSocket port 6668 blocked
-CONSOLE MESSAGE: WebSocket port 6669 blocked
-CONSOLE MESSAGE: WebSocket port 6697 blocked
PASS Basic check
FAIL WebSocket blocked port test 1 The operation is insecure.
@@ -127,6 +60,8 @@
FAIL WebSocket blocked port test 2049 The operation is insecure.
FAIL WebSocket blocked port test 3659 The operation is insecure.
FAIL WebSocket blocked port test 4045 The operation is insecure.
+FAIL WebSocket blocked port test 5060 The operation is insecure.
+FAIL WebSocket blocked port test 5061 The operation is insecure.
FAIL WebSocket blocked port test 6000 The operation is insecure.
FAIL WebSocket blocked port test 6665 The operation is insecure.
FAIL WebSocket blocked port test 6666 The operation is insecure.
Modified: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.js (270861 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.js 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.js 2020-12-15 22:47:08 UTC (rev 270862)
@@ -68,6 +68,8 @@
2049, // nfs
3659, // apple-sasl
4045, // lockd
+ 5060, // sip
+ 5061, // sips
6000, // x11
6665, // irc (alternate)
6666, // irc (alternate)
Modified: branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt (270861 => 270862)
--- branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt 2020-12-15 22:47:08 UTC (rev 270862)
@@ -60,6 +60,8 @@
FAIL WebSocket blocked port test 2049 The operation is insecure.
FAIL WebSocket blocked port test 3659 The operation is insecure.
FAIL WebSocket blocked port test 4045 The operation is insecure.
+FAIL WebSocket blocked port test 5060 The operation is insecure.
+FAIL WebSocket blocked port test 5061 The operation is insecure.
FAIL WebSocket blocked port test 6000 The operation is insecure.
FAIL WebSocket blocked port test 6665 The operation is insecure.
FAIL WebSocket blocked port test 6666 The operation is insecure.
Modified: branches/safari-610-branch/Source/WTF/ChangeLog (270861 => 270862)
--- branches/safari-610-branch/Source/WTF/ChangeLog 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/Source/WTF/ChangeLog 2020-12-15 22:47:08 UTC (rev 270862)
@@ -1,3 +1,50 @@
+2020-12-15 Alan Coon <[email protected]>
+
+ Cherry-pick r269436. rdar://problem/72298523
+
+ Consider blocking ports 5060 and 5061
+ https://bugs.webkit.org/show_bug.cgi?id=218557
+ <rdar://problem/71031479>
+
+ Reviewed by Alex Christensen.
+
+ LayoutTests/imported/w3c:
+
+ * web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.html: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.js: Added.
+ (BLOCKED_PORTS_LIST.map):
+ * web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.any.worker.html: Added.
+ * web-platform-tests/fetch/api/request/request-bad-port.html: Removed.
+ * web-platform-tests/tools/wptserve/wptserve/utils.py:
+ (is_bad_port):
+ * web-platform-tests/websockets/Create-blocked-port.any-expected.txt:
+ * web-platform-tests/websockets/Create-blocked-port.any.js:
+ * web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt:
+
+ Source/WTF:
+
+ * wtf/URL.cpp:
+ (WTF::portAllowed):
+
+ LayoutTests:
+
+ * TestExpectations:
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@269436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2020-11-05 Youenn Fablet <[email protected]>
+
+ Consider blocking ports 5060 and 5061
+ https://bugs.webkit.org/show_bug.cgi?id=218557
+ <rdar://problem/71031479>
+
+ Reviewed by Alex Christensen.
+
+ * wtf/URL.cpp:
+ (WTF::portAllowed):
+
2020-12-14 Alan Coon <[email protected]>
Cherry-pick r270449. rdar://problem/72298505
Modified: branches/safari-610-branch/Source/WTF/wtf/URL.cpp (270861 => 270862)
--- branches/safari-610-branch/Source/WTF/wtf/URL.cpp 2020-12-15 21:38:51 UTC (rev 270861)
+++ branches/safari-610-branch/Source/WTF/wtf/URL.cpp 2020-12-15 22:47:08 UTC (rev 270862)
@@ -917,6 +917,8 @@
3659, // apple-sasl / PasswordServer [Apple addition]
4045, // lockd
4190, // ManageSieve [Apple addition]
+ 5060, // SIP
+ 5061, // SIPS
6000, // X11
6665, // Alternate IRC [Apple addition]
6666, // Alternate IRC [Apple addition]