Import Cobalt 19.master.0.203780
Includes the following patches:
https://cobalt-review.googlesource.com/c/cobalt/+/5210
by errong.leng@samsung.com
https://cobalt-review.googlesource.com/c/cobalt/+/5270
by linus.wang@samsung.com
diff --git a/src/third_party/web_platform_tests/websockets/Create-Secure-blocked-port.htm b/src/third_party/web_platform_tests/websockets/Create-Secure-blocked-port.htm
new file mode 100644
index 0000000..8a4866d
--- /dev/null
+++ b/src/third_party/web_platform_tests/websockets/Create-Secure-blocked-port.htm
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>W3C WebSocket API - Create Secure WebSocket - blocked port</title>
+ <script type="text/javascript" src="/resources/testharness.js"></script>
+ <script type="text/javascript" src="/resources/testharnessreport.js"></script>
+ <script type="text/javascript" src="websocket.js?pipe=sub"></script>
+</head>
+<body>
+ <div id="log"></div>
+ <script>
+ test(function () {
+ var wsocket;
+ var blockedPort = 25;
+ assert_throws("SECURITY_ERR", function () { wsocket = CreateWebSocketWithBlockedPort(blockedPort) });
+ }, "W3C WebSocket API - Create Secure WebSocket - Pass a URL with a blocked port - SECURITY_ERR should be thrown")
+ </script>
+</body>
+</html>