summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/client-hints/critical-ch/iframe.https.window.js
blob: cbf128149e983fa1fb4e4ef085f5179c16b50016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// META: script=resources/util.js

async_test((t) => {
  window.addEventListener('message', message_listener(t, "FAIL"));
  var iframe = document.createElement("iframe");
  iframe.src = ECHO_URL;
  document.body.appendChild(iframe);
}, "Critical-CH iframe");

async_test((t) => {
  window.addEventListener('message', message_listener(t, "FAIL"));
  var iframe = document.createElement("iframe");
  iframe.src = ECHO_URL+"?multiple=true";
  document.body.appendChild(iframe);
}, "Critical-CH w/ multiple headers and iframe");