Title: [270321] trunk
Revision
270321
Author
[email protected]
Date
2020-12-01 11:29:43 -0800 (Tue, 01 Dec 2020)

Log Message

Update list of block ports according fetch spec
https://bugs.webkit.org/show_bug.cgi?id=219154

Reviewed by Sam Weinig.

LayoutTests/imported/w3c:

* web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt:
* web-platform-tests/fetch/api/request/request-bad-port.any.js:
* web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt:
* 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):

Modified Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (270320 => 270321)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-12-01 19:28:26 UTC (rev 270320)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-12-01 19:29:43 UTC (rev 270321)
@@ -1,3 +1,17 @@
+2020-12-01  Youenn Fablet  <[email protected]>
+
+        Update list of block ports according fetch spec
+        https://bugs.webkit.org/show_bug.cgi?id=219154
+
+        Reviewed by Sam Weinig.
+
+        * web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt:
+        * web-platform-tests/fetch/api/request/request-bad-port.any.js:
+        * web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt:
+        * 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-12-01  Rob Buis  <[email protected]>
 
         Lazy loaded iframe should not lazy load when scripting is disabled

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt (270320 => 270321)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt	2020-12-01 19:28:26 UTC (rev 270320)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any-expected.txt	2020-12-01 19:29:43 UTC (rev 270321)
@@ -15,6 +15,7 @@
 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:69/
 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/
@@ -32,8 +33,10 @@
 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:137/
 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:161/
 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/
@@ -48,6 +51,7 @@
 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:554/
 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/
@@ -56,11 +60,15 @@
 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:1719/
+Blocked access to external URL http://example.com:1720/
+Blocked access to external URL http://example.com:1723/
 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:6566/
 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/
@@ -85,6 +93,7 @@
 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 69 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.
@@ -102,8 +111,10 @@
 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 137 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 161 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.
@@ -118,6 +129,7 @@
 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 554 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.
@@ -126,11 +138,15 @@
 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 1719 should throw TypeError.
+PASS Request on bad port 1720 should throw TypeError.
+PASS Request on bad port 1723 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 6566 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.

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.js (270320 => 270321)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.js	2020-12-01 19:28:26 UTC (rev 270320)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.js	2020-12-01 19:29:43 UTC (rev 270321)
@@ -20,6 +20,7 @@
     42,   // name
     43,   // nicname
     53,   // domain
+    69,   // TFTP
     77,   // priv-rjs
     79,   // finger
     87,   // ttylink
@@ -37,8 +38,10 @@
     119,  // nntp
     123,  // ntp
     135,  // loc-srv / epmap
+    137,  // netbios
     139,  // netbios
     143,  // imap2
+    161,  // SNMP
     179,  // bgp
     389,  // ldap
     427,  // afp (alternate)
@@ -53,6 +56,7 @@
     532,  // netnews
     540,  // uucp
     548,  // afp
+    554,  // rtsp
     556,  // remotefs
     563,  // nntp+ssl
     587,  // smtp (outgoing)
@@ -61,11 +65,15 @@
     993,  // ldap+ssl
     995,  // pop3+ssl
     2049, // nfs
+    1719, // H323 (RAS)
+    1720, // H323 (Q931)
+    1723, // H323 (H245)
     3659, // apple-sasl
     4045, // lockd
     5060, // sip
     5061, // sips
     6000, // x11
+    6566, // SANE
     6665, // irc (alternate)
     6666, // irc (alternate)
     6667, // irc (default)

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt (270320 => 270321)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt	2020-12-01 19:28:26 UTC (rev 270320)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.any.worker-expected.txt	2020-12-01 19:29:43 UTC (rev 270321)
@@ -15,6 +15,7 @@
 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:69/
 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/
@@ -32,8 +33,10 @@
 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:137/
 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:161/
 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/
@@ -48,6 +51,7 @@
 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:554/
 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/
@@ -56,11 +60,15 @@
 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:1719/
+Blocked access to external URL http://example.com:1720/
+Blocked access to external URL http://example.com:1723/
 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:6566/
 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/
@@ -85,6 +93,7 @@
 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 69 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.
@@ -102,8 +111,10 @@
 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 137 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 161 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.
@@ -118,6 +129,7 @@
 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 554 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.
@@ -126,11 +138,15 @@
 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 1719 should throw TypeError.
+PASS Request on bad port 1720 should throw TypeError.
+PASS Request on bad port 1723 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 6566 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.

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt (270320 => 270321)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt	2020-12-01 19:28:26 UTC (rev 270320)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt	2020-12-01 19:29:43 UTC (rev 270321)
@@ -17,6 +17,7 @@
 PASS WebSocket blocked port test 42
 PASS WebSocket blocked port test 43
 PASS WebSocket blocked port test 53
+PASS WebSocket blocked port test 69
 PASS WebSocket blocked port test 77
 PASS WebSocket blocked port test 79
 PASS WebSocket blocked port test 87
@@ -34,8 +35,10 @@
 PASS WebSocket blocked port test 119
 PASS WebSocket blocked port test 123
 PASS WebSocket blocked port test 135
+PASS WebSocket blocked port test 137
 PASS WebSocket blocked port test 139
 PASS WebSocket blocked port test 143
+PASS WebSocket blocked port test 161
 PASS WebSocket blocked port test 179
 PASS WebSocket blocked port test 389
 PASS WebSocket blocked port test 427
@@ -50,6 +53,7 @@
 PASS WebSocket blocked port test 532
 PASS WebSocket blocked port test 540
 PASS WebSocket blocked port test 548
+PASS WebSocket blocked port test 554
 PASS WebSocket blocked port test 556
 PASS WebSocket blocked port test 563
 PASS WebSocket blocked port test 587
@@ -58,11 +62,15 @@
 PASS WebSocket blocked port test 993
 PASS WebSocket blocked port test 995
 PASS WebSocket blocked port test 2049
+PASS WebSocket blocked port test 1719
+PASS WebSocket blocked port test 1720
+PASS WebSocket blocked port test 1723
 PASS WebSocket blocked port test 3659
 PASS WebSocket blocked port test 4045
 PASS WebSocket blocked port test 5060
 PASS WebSocket blocked port test 5061
 PASS WebSocket blocked port test 6000
+PASS WebSocket blocked port test 6566
 PASS WebSocket blocked port test 6665
 PASS WebSocket blocked port test 6666
 PASS WebSocket blocked port test 6667

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.js (270320 => 270321)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.js	2020-12-01 19:28:26 UTC (rev 270320)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.js	2020-12-01 19:29:43 UTC (rev 270321)
@@ -25,6 +25,7 @@
   42,   // name
   43,   // nicname
   53,   // domain
+  69,   // TFTP
   77,   // priv-rjs
   79,   // finger
   87,   // ttylink
@@ -42,8 +43,10 @@
   119,  // nntp
   123,  // ntp
   135,  // loc-srv / epmap
+  137,  // netbios
   139,  // netbios
   143,  // imap2
+  161,  // SNMP
   179,  // bgp
   389,  // ldap
   427,  // afp (alternate)
@@ -58,6 +61,7 @@
   532,  // netnews
   540,  // uucp
   548,  // afp
+  554,  // rtsp
   556,  // remotefs
   563,  // nntp+ssl
   587,  // smtp (outgoing)
@@ -66,11 +70,15 @@
   993,  // ldap+ssl
   995,  // pop3+ssl
   2049, // nfs
+  1719, // H323 (RAS)
+  1720, // H323 (Q931)
+  1723, // H323 (H245)
   3659, // apple-sasl
   4045, // lockd
   5060, // sip
   5061, // sips
   6000, // x11
+  6566, // SANE
   6665, // irc (alternate)
   6666, // irc (alternate)
   6667, // irc (default)

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt (270320 => 270321)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt	2020-12-01 19:28:26 UTC (rev 270320)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt	2020-12-01 19:29:43 UTC (rev 270321)
@@ -17,6 +17,7 @@
 PASS WebSocket blocked port test 42
 PASS WebSocket blocked port test 43
 PASS WebSocket blocked port test 53
+PASS WebSocket blocked port test 69
 PASS WebSocket blocked port test 77
 PASS WebSocket blocked port test 79
 PASS WebSocket blocked port test 87
@@ -34,8 +35,10 @@
 PASS WebSocket blocked port test 119
 PASS WebSocket blocked port test 123
 PASS WebSocket blocked port test 135
+PASS WebSocket blocked port test 137
 PASS WebSocket blocked port test 139
 PASS WebSocket blocked port test 143
+PASS WebSocket blocked port test 161
 PASS WebSocket blocked port test 179
 PASS WebSocket blocked port test 389
 PASS WebSocket blocked port test 427
@@ -50,6 +53,7 @@
 PASS WebSocket blocked port test 532
 PASS WebSocket blocked port test 540
 PASS WebSocket blocked port test 548
+PASS WebSocket blocked port test 554
 PASS WebSocket blocked port test 556
 PASS WebSocket blocked port test 563
 PASS WebSocket blocked port test 587
@@ -58,11 +62,15 @@
 PASS WebSocket blocked port test 993
 PASS WebSocket blocked port test 995
 PASS WebSocket blocked port test 2049
+PASS WebSocket blocked port test 1719
+PASS WebSocket blocked port test 1720
+PASS WebSocket blocked port test 1723
 PASS WebSocket blocked port test 3659
 PASS WebSocket blocked port test 4045
 PASS WebSocket blocked port test 5060
 PASS WebSocket blocked port test 5061
 PASS WebSocket blocked port test 6000
+PASS WebSocket blocked port test 6566
 PASS WebSocket blocked port test 6665
 PASS WebSocket blocked port test 6666
 PASS WebSocket blocked port test 6667

Modified: trunk/Source/WTF/ChangeLog (270320 => 270321)


--- trunk/Source/WTF/ChangeLog	2020-12-01 19:28:26 UTC (rev 270320)
+++ trunk/Source/WTF/ChangeLog	2020-12-01 19:29:43 UTC (rev 270321)
@@ -1,3 +1,13 @@
+2020-12-01  Youenn Fablet  <[email protected]>
+
+        Update list of block ports according fetch spec
+        https://bugs.webkit.org/show_bug.cgi?id=219154
+
+        Reviewed by Sam Weinig.
+
+        * wtf/URL.cpp:
+        (WTF::portAllowed):
+
 2020-12-01  Ryan Haddad  <[email protected]>
 
         Unreviewed, reverting r270132.

Modified: trunk/Source/WTF/wtf/URL.cpp (270320 => 270321)


--- trunk/Source/WTF/wtf/URL.cpp	2020-12-01 19:28:26 UTC (rev 270320)
+++ trunk/Source/WTF/wtf/URL.cpp	2020-12-01 19:29:43 UTC (rev 270321)
@@ -909,6 +909,7 @@
         42,   // name
         43,   // nicname
         53,   // domain
+        69,   // TFTP
         77,   // priv-rjs
         79,   // finger
         87,   // ttylink
@@ -926,8 +927,10 @@
         119,  // nntp
         123,  // NTP
         135,  // loc-srv / epmap
+        137,  // NetBIOS
         139,  // netbios
         143,  // IMAP2
+        161,  // SNMP
         179,  // BGP
         389,  // LDAP
         427,  // SLP (Also used by Apple Filing Protocol)
@@ -942,6 +945,7 @@
         532,  // netnews
         540,  // UUCP
         548,  // afpovertcp [Apple addition]
+        554,  // rtsp
         556,  // remotefs
         563,  // NNTP+SSL
         587,  // ESMTP
@@ -949,6 +953,9 @@
         636,  // LDAP+SSL
         993,  // IMAP+SSL
         995,  // POP3+SSL
+        1719, // H323 (RAS)
+        1720, // H323 (Q931)
+        1723, // H323 (H245)
         2049, // NFS
         3659, // apple-sasl / PasswordServer [Apple addition]
         4045, // lockd
@@ -956,6 +963,7 @@
         5060, // SIP
         5061, // SIPS
         6000, // X11
+        6566, // SANE
         6665, // Alternate IRC [Apple addition]
         6666, // Alternate IRC [Apple addition]
         6667, // Standard IRC [Apple addition]
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to