summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/origins/resources/mixedXHR.html
blob: 3dfd90006d5f890e5b2e4fe4c84bc6d7a13f1d9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
    <head>
        <title>Mixed</title>
        <script>
         var result;
         function sendXHR(url) {
             result = undefined;
             let req = new XMLHttpRequest();
             req.addEventListener("load", () => { result = req.responseText });
             req.addEventListener("error", () => { result = "error"; });
             req.open("GET", url);
             req.send();
         }
        </script>
    </head>
    <body>
    </body>
</html>