mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Bug 1465437 [wpt PR 11249] - Fetch: port blocking change (427, 548), a=testonly
Automatic update from web-platform-testsFetch: port blocking change (427, 548, 6697) See https://github.com/whatwg/fetch/pull/738. -- wpt-commits: 2b0cd6155aa269d3ee6e940edb1b2f5c1d5ae1ed wpt-pr: 11249
This commit is contained in:
parent
3999caf25a
commit
1d447e7a84
@ -566147,7 +566147,7 @@
|
||||
"testharness"
|
||||
],
|
||||
"fetch/api/request/request-bad-port.html": [
|
||||
"1e4fbcdad22c78c6774c2496b70f6a3ede4a7c34",
|
||||
"5436112676d73fb12b31723ec7b2f4700eef03fd",
|
||||
"testharness"
|
||||
],
|
||||
"fetch/api/request/request-cache-default-conditional.html": [
|
||||
@ -620779,7 +620779,7 @@
|
||||
"testharness"
|
||||
],
|
||||
"websockets/Create-blocked-port.any.js": [
|
||||
"e09fb109af886f9f85a7ba94556158e0d8a19a52",
|
||||
"8c2ebbc8199bc7b74d5ff8e61307a36c9ffc4786",
|
||||
"testharness"
|
||||
],
|
||||
"websockets/Create-invalid-urls.any.js": [
|
||||
|
@ -46,7 +46,8 @@
|
||||
143, // imap2
|
||||
179, // bgp
|
||||
389, // ldap
|
||||
465, // smtp+ssl
|
||||
427, // afp (alternate)
|
||||
465, // smtp (alternate)
|
||||
512, // print / exec
|
||||
513, // login
|
||||
514, // shell
|
||||
@ -56,12 +57,13 @@
|
||||
531, // chat
|
||||
532, // netnews
|
||||
540, // uucp
|
||||
548, // afp
|
||||
556, // remotefs
|
||||
563, // nntp+ssl
|
||||
587, // smtp
|
||||
587, // smtp (outgoing)
|
||||
601, // syslog-conn
|
||||
636, // ldap+ssl
|
||||
993, // imap+ssl
|
||||
993, // ldap+ssl
|
||||
995, // pop3+ssl
|
||||
2049, // nfs
|
||||
3659, // apple-sasl
|
||||
@ -72,6 +74,7 @@
|
||||
6667, // irc (default)
|
||||
6668, // irc (alternate)
|
||||
6669, // irc (alternate)
|
||||
6697, // irc+tls
|
||||
];
|
||||
|
||||
BLOCKED_PORTS_LIST.map(function(a){
|
||||
|
@ -67,7 +67,8 @@ def is_bad_port(port):
|
||||
143, # imap2
|
||||
179, # bgp
|
||||
389, # ldap
|
||||
465, # smtp+ssl
|
||||
427, # afp (alternate)
|
||||
465, # smtp (alternate)
|
||||
512, # print / exec
|
||||
513, # login
|
||||
514, # shell
|
||||
@ -77,12 +78,13 @@ def is_bad_port(port):
|
||||
531, # chat
|
||||
532, # netnews
|
||||
540, # uucp
|
||||
548, # afp
|
||||
556, # remotefs
|
||||
563, # nntp+ssl
|
||||
587, # smtp
|
||||
587, # smtp (outgoing)
|
||||
601, # syslog-conn
|
||||
636, # ldap+ssl
|
||||
993, # imap+ssl
|
||||
993, # ldap+ssl
|
||||
995, # pop3+ssl
|
||||
2049, # nfs
|
||||
3659, # apple-sasl
|
||||
@ -93,6 +95,7 @@ def is_bad_port(port):
|
||||
6667, # irc (default)
|
||||
6668, # irc (alternate)
|
||||
6669, # irc (alternate)
|
||||
6697, # irc+tls
|
||||
]
|
||||
|
||||
def get_port(host):
|
||||
|
@ -8,61 +8,63 @@ async_test(t => {
|
||||
// list of bad ports according to
|
||||
// https://fetch.spec.whatwg.org/#port-blocking
|
||||
[
|
||||
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
|
||||
465, // smtp+ssl
|
||||
512, // print / exec
|
||||
513, // login
|
||||
514, // shell
|
||||
515, // printer
|
||||
526, // tempo
|
||||
530, // courier
|
||||
531, // chat
|
||||
532, // netnews
|
||||
540, // uucp
|
||||
556, // remotefs
|
||||
563, // nntp+ssl
|
||||
587, // smtp
|
||||
601, // syslog-conn
|
||||
636, // ldap+ssl
|
||||
993, // imap+ssl
|
||||
995, // pop3+ssl
|
||||
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
|
||||
@ -72,6 +74,7 @@ async_test(t => {
|
||||
6667, // irc (default)
|
||||
6668, // irc (alternate)
|
||||
6669, // irc (alternate)
|
||||
6697, // irc+tls
|
||||
].forEach(blockedPort => {
|
||||
async_test(t => {
|
||||
const ws = CreateWebSocketWithBlockedPort(blockedPort)
|
||||
|
Loading…
Reference in New Issue
Block a user