24 lines
756 B
HTML
24 lines
756 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>HTTPS Upgrades: Fallback.</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/common/get-host-info.sub.js"></script>
|
|
|
|
</head>
|
|
<body>
|
|
<script>
|
|
setup({ single_test: true });
|
|
// If HTTPS upgrades are enabled, this will fail to load since this test is http only,
|
|
// and should load properly once a fallback is triggered.
|
|
var url = new URL("http://{{host}}:{{ports[http][0]}}/https-upgrades/resources/pass.html")
|
|
window.onmessage = function(event) {
|
|
if (event.data === "pass") {
|
|
done();
|
|
}
|
|
}
|
|
win = window.open(url)
|
|
</script>
|
|
</body>
|
|
</html>
|