blob: 50d32954ef0fabb6f10c5fb390b2a5f3ada8b87a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("StartFetch", async function() {
let comResult;
let orgResult;
await Promise.all([
fetch("http://example.com/")
.then(() => {
comResult = "success";
})
.catch(() => {
comResult = "error";
}),
fetch("http://example.org/")
.then(() => {
orgResult = "success";
})
.catch(() => {
orgResult = "error";
}),
]);
window.dispatchEvent(new CustomEvent("FetchEnded", {
detail: { comResult, orgResult }
}));
})
</script>
</head>
<body>
<h2>Https-Only: CORS and MixedContent tests</h2>
<p><a href="https://bugzilla.mozilla.org/bug/1659505">Bug 1659505</a></p>
</body>
</html>
|