Changeset 238604 in webkit
- Timestamp:
- Nov 28, 2018 12:28:12 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r238592 r238604 1 2018-11-27 Rob Buis <rbuis@igalia.com> 2 3 Block more ports (427, 548, 6697) 4 https://bugs.webkit.org/show_bug.cgi?id=186092 5 6 Reviewed by Frédéric Wang. 7 8 Update request-bad-port.html to latest version. 9 10 * web-platform-tests/fetch/api/request/request-bad-port-expected.txt: 11 * web-platform-tests/fetch/api/request/request-bad-port.html: 12 1 13 2018-11-27 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port-expected.txt
r220050 r238604 1 1 Blocked access to external URL http://example.com:1/ 2 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:1/ due to access control checks.2 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:1/ due to access control checks. 3 3 Blocked access to external URL http://example.com:7/ 4 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:7/ due to access control checks.4 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:7/ due to access control checks. 5 5 Blocked access to external URL http://example.com:9/ 6 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:9/ due to access control checks.6 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:9/ due to access control checks. 7 7 Blocked access to external URL http://example.com:11/ 8 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:11/ due to access control checks.8 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:11/ due to access control checks. 9 9 Blocked access to external URL http://example.com:13/ 10 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:13/ due to access control checks.10 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:13/ due to access control checks. 11 11 Blocked access to external URL http://example.com:15/ 12 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:15/ due to access control checks.12 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:15/ due to access control checks. 13 13 Blocked access to external URL http://example.com:17/ 14 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:17/ due to access control checks.14 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:17/ due to access control checks. 15 15 Blocked access to external URL http://example.com:19/ 16 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:19/ due to access control checks.16 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:19/ due to access control checks. 17 17 Blocked access to external URL http://example.com:20/ 18 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:20/ due to access control checks.18 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:20/ due to access control checks. 19 19 Blocked access to external URL http://example.com:21/ 20 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:21/ due to access control checks.20 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:21/ due to access control checks. 21 21 Blocked access to external URL http://example.com:22/ 22 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:22/ due to access control checks.22 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:22/ due to access control checks. 23 23 Blocked access to external URL http://example.com:23/ 24 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:23/ due to access control checks.24 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:23/ due to access control checks. 25 25 Blocked access to external URL http://example.com:25/ 26 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:25/ due to access control checks.26 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:25/ due to access control checks. 27 27 Blocked access to external URL http://example.com:37/ 28 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:37/ due to access control checks.28 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:37/ due to access control checks. 29 29 Blocked access to external URL http://example.com:42/ 30 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:42/ due to access control checks.30 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:42/ due to access control checks. 31 31 Blocked access to external URL http://example.com:43/ 32 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:43/ due to access control checks.32 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:43/ due to access control checks. 33 33 Blocked access to external URL http://example.com:53/ 34 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:53/ due to access control checks.34 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:53/ due to access control checks. 35 35 Blocked access to external URL http://example.com:77/ 36 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:77/ due to access control checks.36 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:77/ due to access control checks. 37 37 Blocked access to external URL http://example.com:79/ 38 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:79/ due to access control checks.38 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:79/ due to access control checks. 39 39 Blocked access to external URL http://example.com:87/ 40 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:87/ due to access control checks.40 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:87/ due to access control checks. 41 41 Blocked access to external URL http://example.com:95/ 42 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:95/ due to access control checks.42 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:95/ due to access control checks. 43 43 Blocked access to external URL http://example.com:101/ 44 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:101/ due to access control checks.44 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:101/ due to access control checks. 45 45 Blocked access to external URL http://example.com:102/ 46 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:102/ due to access control checks.46 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:102/ due to access control checks. 47 47 Blocked access to external URL http://example.com:103/ 48 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:103/ due to access control checks.48 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:103/ due to access control checks. 49 49 Blocked access to external URL http://example.com:104/ 50 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:104/ due to access control checks.50 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:104/ due to access control checks. 51 51 Blocked access to external URL http://example.com:109/ 52 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:109/ due to access control checks.52 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:109/ due to access control checks. 53 53 Blocked access to external URL http://example.com:110/ 54 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:110/ due to access control checks.54 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:110/ due to access control checks. 55 55 Blocked access to external URL http://example.com:111/ 56 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:111/ due to access control checks.56 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:111/ due to access control checks. 57 57 Blocked access to external URL http://example.com:113/ 58 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:113/ due to access control checks.58 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:113/ due to access control checks. 59 59 Blocked access to external URL http://example.com:115/ 60 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:115/ due to access control checks.60 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:115/ due to access control checks. 61 61 Blocked access to external URL http://example.com:117/ 62 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:117/ due to access control checks.62 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:117/ due to access control checks. 63 63 Blocked access to external URL http://example.com:119/ 64 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:119/ due to access control checks.64 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:119/ due to access control checks. 65 65 Blocked access to external URL http://example.com:123/ 66 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:123/ due to access control checks.66 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:123/ due to access control checks. 67 67 Blocked access to external URL http://example.com:135/ 68 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:135/ due to access control checks.68 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:135/ due to access control checks. 69 69 Blocked access to external URL http://example.com:139/ 70 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:139/ due to access control checks.70 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:139/ due to access control checks. 71 71 Blocked access to external URL http://example.com:143/ 72 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:143/ due to access control checks.72 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:143/ due to access control checks. 73 73 Blocked access to external URL http://example.com:179/ 74 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:179/ due to access control checks.74 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:179/ due to access control checks. 75 75 Blocked access to external URL http://example.com:389/ 76 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:389/ due to access control checks. 76 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:389/ due to access control checks. 77 Blocked access to external URL http://example.com:427/ 78 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:427/ due to access control checks. 77 79 Blocked access to external URL http://example.com:465/ 78 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:465/ due to access control checks.80 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:465/ due to access control checks. 79 81 Blocked access to external URL http://example.com:512/ 80 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:512/ due to access control checks.82 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:512/ due to access control checks. 81 83 Blocked access to external URL http://example.com:513/ 82 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:513/ due to access control checks.84 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:513/ due to access control checks. 83 85 Blocked access to external URL http://example.com:514/ 84 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:514/ due to access control checks.86 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:514/ due to access control checks. 85 87 Blocked access to external URL http://example.com:515/ 86 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:515/ due to access control checks.88 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:515/ due to access control checks. 87 89 Blocked access to external URL http://example.com:526/ 88 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:526/ due to access control checks.90 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:526/ due to access control checks. 89 91 Blocked access to external URL http://example.com:530/ 90 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:530/ due to access control checks.92 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:530/ due to access control checks. 91 93 Blocked access to external URL http://example.com:531/ 92 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:531/ due to access control checks.94 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:531/ due to access control checks. 93 95 Blocked access to external URL http://example.com:532/ 94 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:532/ due to access control checks.96 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:532/ due to access control checks. 95 97 Blocked access to external URL http://example.com:540/ 96 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:540/ due to access control checks. 98 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:540/ due to access control checks. 99 Blocked access to external URL http://example.com:548/ 100 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:548/ due to access control checks. 97 101 Blocked access to external URL http://example.com:556/ 98 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:556/ due to access control checks.102 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:556/ due to access control checks. 99 103 Blocked access to external URL http://example.com:563/ 100 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:563/ due to access control checks.104 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:563/ due to access control checks. 101 105 Blocked access to external URL http://example.com:587/ 102 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:587/ due to access control checks.106 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:587/ due to access control checks. 103 107 Blocked access to external URL http://example.com:601/ 104 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:601/ due to access control checks.108 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:601/ due to access control checks. 105 109 Blocked access to external URL http://example.com:636/ 106 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:636/ due to access control checks.110 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:636/ due to access control checks. 107 111 Blocked access to external URL http://example.com:993/ 108 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:993/ due to access control checks.112 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:993/ due to access control checks. 109 113 Blocked access to external URL http://example.com:995/ 110 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:995/ due to access control checks.114 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:995/ due to access control checks. 111 115 Blocked access to external URL http://example.com:2049/ 112 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:2049/ due to access control checks.116 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:2049/ due to access control checks. 113 117 Blocked access to external URL http://example.com:3659/ 114 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:3659/ due to access control checks.118 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:3659/ due to access control checks. 115 119 Blocked access to external URL http://example.com:4045/ 116 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:4045/ due to access control checks.120 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:4045/ due to access control checks. 117 121 Blocked access to external URL http://example.com:6000/ 118 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6000/ due to access control checks.122 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6000/ due to access control checks. 119 123 Blocked access to external URL http://example.com:6665/ 120 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6665/ due to access control checks.124 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6665/ due to access control checks. 121 125 Blocked access to external URL http://example.com:6666/ 122 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6666/ due to access control checks.126 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6666/ due to access control checks. 123 127 Blocked access to external URL http://example.com:6667/ 124 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6667/ due to access control checks.128 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6667/ due to access control checks. 125 129 Blocked access to external URL http://example.com:6668/ 126 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6668/ due to access control checks.130 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6668/ due to access control checks. 127 131 Blocked access to external URL http://example.com:6669/ 128 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6669/ due to access control checks. 132 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6669/ due to access control checks. 133 Blocked access to external URL http://example.com:6697/ 134 CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6697/ due to access control checks. 129 135 130 136 PASS Request on bad port 1 should throw TypeError. … … 166 172 PASS Request on bad port 179 should throw TypeError. 167 173 PASS Request on bad port 389 should throw TypeError. 174 PASS Request on bad port 427 should throw TypeError. 168 175 PASS Request on bad port 465 should throw TypeError. 169 176 PASS Request on bad port 512 should throw TypeError. … … 176 183 PASS Request on bad port 532 should throw TypeError. 177 184 PASS Request on bad port 540 should throw TypeError. 185 PASS Request on bad port 548 should throw TypeError. 178 186 PASS Request on bad port 556 should throw TypeError. 179 187 PASS Request on bad port 563 should throw TypeError. … … 192 200 PASS Request on bad port 6668 should throw TypeError. 193 201 PASS Request on bad port 6669 should throw TypeError. 202 PASS Request on bad port 6697 should throw TypeError. 194 203 -
trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.html
r210823 r238604 5 5 <script src="/resources/testharnessreport.js"></script> 6 6 <script> 7 8 7 // list of bad ports according to 9 8 // https://fetch.spec.whatwg.org/#port-blocking … … 47 46 179, // bgp 48 47 389, // ldap 49 465, // smtp+ssl 48 427, // afp (alternate) 49 465, // smtp (alternate) 50 50 512, // print / exec 51 51 513, // login … … 57 57 532, // netnews 58 58 540, // uucp 59 548, // afp 59 60 556, // remotefs 60 61 563, // nntp+ssl 61 587, // smtp 62 587, // smtp (outgoing) 62 63 601, // syslog-conn 63 64 636, // ldap+ssl 64 993, // imap+ssl65 993, // ldap+ssl 65 66 995, // pop3+ssl 66 67 2049, // nfs … … 73 74 6668, // irc (alternate) 74 75 6669, // irc (alternate) 76 6697, // irc+tls 75 77 ]; 76 77 78 BLOCKED_PORTS_LIST.map(function(a){ 78 79 promise_test(function(t){ -
trunk/Source/WebCore/ChangeLog
r238601 r238604 1 2018-11-27 Rob Buis <rbuis@igalia.com> 2 3 Block more ports (427, 548, 6697) 4 https://bugs.webkit.org/show_bug.cgi?id=186092 5 6 Reviewed by Frédéric Wang. 7 8 Block port 427, ports 548 and 6697 are aleady blocked and 9 are tested by the updated request-bad-port.html wpt test. 10 11 Behavior matches Firefox and Chrome. 12 13 Test: web-platform-tests/fetch/api/request/request-bad-port.html 14 15 * platform/URL.cpp: 16 (WebCore::portAllowed): 17 1 18 2018-11-27 Youenn Fablet <youenn@apple.com> 2 19 -
trunk/Source/WebCore/platform/URL.cpp
r237073 r238604 920 920 179, // BGP 921 921 389, // LDAP 922 427, // SLP (Also used by Apple Filing Protocol) 922 923 465, // SMTP+SSL 923 924 512, // print / exec
Note: See TracChangeset
for help on using the changeset viewer.