summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resource-timing/resources/fake_responses_https.sub.html
blob: 21f1f02a6747f12becfe14dfcbdff7263b32bacd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<body>
<script>
function request() {
  var client = new XMLHttpRequest,
      baseurl = "https://{{hosts[alt][]}}:{{ports[https][0]}}{{location[pathname]}}",
      url = new URL("fake_responses.py", baseurl).href;
    client.open("GET", url, false)
    client.send(null)
    client.open("GET", url, false)
    client.send(null)
}

if(window.parent.setup_iframe) {
  window.parent.setup_iframe();
  request();
}
</script>
</body>