mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
25 lines
796 B
HTML
25 lines
796 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Upgrade Insecure Requests: WebSockets.</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="./support/testharness-helper.sub.js"></script>
|
|
|
|
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
|
|
</head>
|
|
<body>
|
|
<script>
|
|
var tests = [
|
|
generateURL(Host.SAME_ORIGIN, Protocol.INSECURE, ResourceType.WEBSOCKET),
|
|
generateURL(Host.SAME_ORIGIN, Protocol.SECURE, ResourceType.WEBSOCKET),
|
|
generateURL(Host.CROSS_ORIGIN, Protocol.INSECURE, ResourceType.WEBSOCKET),
|
|
generateURL(Host.CROSS_ORIGIN, Protocol.SECURE, ResourceType.WEBSOCKET),
|
|
];
|
|
|
|
tests.forEach(test => {
|
|
async_test(t => assert_websocket_loads(t, test.url), test.name);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|